aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2018-05-21 11:36:03 +0100
committerDaniel Thompson <daniel.thompson@linaro.org>2018-05-21 11:36:03 +0100
commite90ca14951734ddc3c97bd6fc84a6a98b4447cc7 (patch)
tree036b8844f99527ca44a52c61f9c8c73ce0c72dba
parent1d017ead1c5d65f4a7a8738643e64bc0b8f0c554 (diff)
glance: Fix until handling
For until, if no timne is supplied then we need to adopt the end of the day, not the beginning.
-rwxr-xr-xbin/glance4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glance b/bin/glance
index 35ecaba..52f5c8a 100755
--- a/bin/glance
+++ b/bin/glance
@@ -440,7 +440,7 @@ def do_chart(args):
if args.card_tracker:
since = date.smart_parse(args.since)
- until = date.smart_parse(args.until)
+ until = date.smart_parse(args.until, end_of_day=True)
all_cards = report.issues.values()
closed_cards = [ c for c in all_cards if c.date('resolutiondate') ]
@@ -538,7 +538,7 @@ def do_filter(args):
iso8601.parse_date(w['started']) >= since ]
if args.worklog_until:
- until = date.smart_parse(args.worklog_until)
+ until = date.smart_parse(args.worklog_until, end_of_day=True)
for i in issues:
i['worklog'] = [ w for w in i['worklog'] if
iso8601.parse_date(w['started']) <= until ]