jrnl icon indicating copy to clipboard operation
jrnl copied to clipboard

Time is ignored when supplied as an integer

Open xeruf opened this issue 3 years ago • 2 comments

Bug Report

Environment

  • jrnl --diagnostic output:
    jrnl: v2.8.1
    Python: 3.9.5 (default, May 24 2021, 12:50:35) 
    [GCC 11.1.0]
    OS: Linux 5.12.9-arch1-1
    
  • Install method: Arch

Current Behavior

jrnl today at 9: test ignores the time and uses the default time from the config.

Expected Behavior

jrnl today at 9: test inserts an entry today at 9 o'clock

xeruf avatar Jun 14 '21 05:06 xeruf

I've reproduced this on my machine at well. We should look into this, but in the meantime, here are some workarounds that still have some brevity.

Using a or p for am/pm:

jrnl today at 9a: test

Using 4-digit time:

jrnl today at 0900: test

micahellison avatar Jun 19 '21 18:06 micahellison

I think this is because parsedatetime does not recognize at as an indicator for hours, and therefore cannot interpret a simple integer number like 9 in any meaningful way. I am not sure of this, however, I have posted an issue in their repo, so that maybe we can get updates from them.

giuliofoletto avatar Jan 03 '22 11:01 giuliofoletto