mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Use time.parse in reminisce
This commit is contained in:
parent
cb4200e163
commit
4193385a23
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue