From e90ca14951734ddc3c97bd6fc84a6a98b4447cc7 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 21 May 2018 11:36:03 +0100 Subject: glance: Fix until handling For until, if no timne is supplied then we need to adopt the end of the day, not the beginning. --- bin/glance | 4 ++-- 1 file 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 ] -- cgit v1.2.3