From 4193385a230882aa5613ec603724af4d5b0b30ca Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Mon, 4 Jan 2021 09:35:46 +0200 Subject: [PATCH] Use time.parse in reminisce --- jrnl/jrnl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jrnl/jrnl.py b/jrnl/jrnl.py index 885f411c..333d61d2 100644 --- a/jrnl/jrnl.py +++ b/jrnl/jrnl.py @@ -15,7 +15,7 @@ from .config import get_config_path from .editor import get_text_from_editor from .editor import get_text_from_stdin from .exception import UserAbort -from datetime import datetime +from . import time def run(args): @@ -212,9 +212,9 @@ def _search_journal(args, journal, **kwargs): args.start_date = args.end_date = args.on_date if args.reminisce: - today = datetime.today() - args.day = today.day - args.month = today.month + now = time.parse("now") + args.day = now.day + args.month = now.month journal.filter( tags=args.text,