Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time is ignored when supplied as an integer #1261

Open
xeruf opened this issue Jun 14, 2021 · 2 comments
Open

Time is ignored when supplied as an integer #1261

xeruf opened this issue Jun 14, 2021 · 2 comments
Labels
bug Something isn't working 📌 This can't go stale
Milestone

Comments

@xeruf
Copy link
Contributor

xeruf commented Jun 14, 2021

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 xeruf added 🆕 New! bug Something isn't working labels Jun 14, 2021
@wren wren removed the 🆕 New! label Jun 19, 2021
@micahellison
Copy link
Member

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 micahellison changed the title Parse simple hour specifications Time is ignored when supplied as an integer Jul 3, 2021
@wren wren added the 📌 This can't go stale label Jul 31, 2021
@wren wren added this to the Backlog milestone Jul 31, 2021
@giuliofoletto
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📌 This can't go stale
Projects
None yet
Development

No branches or pull requests

4 participants