From d7667db27d8c9a22fa14a4a2fe7a6168f8a4d9d9 Mon Sep 17 00:00:00 2001 From: David Wittman Date: Mon, 22 Sep 2014 14:31:15 -0500 Subject: [PATCH] Set end_date appropriately when using on_date end_date was incorrectly being set to start_date, which caused `jrnl -on today` to only report entries which were written at 00:00. This commit appends ' 23:59' to the start_date in order to show all entries from that particular day. Fixes #279 --- jrnl/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/cli.py b/jrnl/cli.py index fe105e89..dd1cea2c 100644 --- a/jrnl/cli.py +++ b/jrnl/cli.py @@ -205,7 +205,8 @@ def run(manual_args=None): else: old_entries = journal.entries if args.on_date: - args.start_date = args.end_date = args.on_date + args.start_date = args.on_date + args.end_date = args.on_date + ' 23:59' journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date, strict=args.strict,