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

Adding new entry with date only works with format m.d.Y #1509

Closed
thmsklngr opened this issue Jun 13, 2022 · 1 comment
Closed

Adding new entry with date only works with format m.d.Y #1509

thmsklngr opened this issue Jun 13, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@thmsklngr
Copy link

thmsklngr commented Jun 13, 2022

Bug Report

Environment

jrnl: v2.8.4
Python: 3.10.4 (main, Mar 23 2022, 20:25:24) [GCC 5.4.0 20160609]
OS: Linux 5.13.0-48-generic

Installation method: Homebrew (on Linux)

Current Behavior

Whenever I add a new entry specified with full date, it is always treated as %m.%d.%Y. As far as I have seen there is no note about this and it is not configurable as well.

Expected Behavior

Adding an entry should also work with format %d.%m.%Y, maybe by adding a new option in config.yaml

Repro Steps

See above.

Other Information

EDIT: this happens only, if the day is >=1 and <=12. If I enter 13.06.2022 as example, it works as expected.

@thmsklngr thmsklngr added 🆕 New! bug Something isn't working labels Jun 13, 2022
@micahellison
Copy link
Member

Thanks for the bug report - this has been filed under another issue #696. I'm closing this as a duplicate, though I appreciate the extra info about the 13th+ day of the month.

To help with this bug, would you mind running locale and sharing the output? I think that reading the locale is going to be part of the solution to this and it'd be good to have a test case.

@micahellison micahellison modified the milestone: 696 Jun 18, 2022
@micahellison micahellison added duplicate This issue or pull request already exists and removed 🆕 New! labels Jun 18, 2022
@micahellison micahellison removed the bug Something isn't working label Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants