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

Widget is initialised with wrong date string for European locals #85

Closed
christianwgd opened this issue Nov 23, 2022 · 3 comments
Closed

Comments

@christianwgd
Copy link

Describe the bug
I'm trying to edit a date or datetime object. If this has a value of "23.11.2022 19:52" (db value "2022-11-23 19:52") it is displayed in the form as "20.11.0023 19:52". This is a problem for European locals ("de", "fr", "es", "it", ...), but not for "en-us".

I've created a minimum example to investigate the problem in https://github.com/christianwgd/datepicker

Expected behavior
Show the date string in the form as "23.11.2022 19:52"

Screenshots
See example app.

Setup Information (please complete the following information):

  • OS: macOS 12.6
  • Browser Tested with recent Safari, Chrome, FireFox
  • Python version 3.10.4
  • Django version 4.1.3
  • Bootstrap version 5
  • jQuery version 3.6.0

[x] I have followed the [configuration instructions][configuration_page] and checked out the
[common error troubleshooting][troubleshooting_page] page.

@laurentiurosu-04
Copy link

laurentiurosu-04 commented Nov 23, 2022

Hi, I'm having the same issue with timezone 'Europe/Bucharest' on edit.

Screenshot

@monim67
Copy link
Owner

monim67 commented Nov 23, 2022

Thanks for your reproducible example and screenshot, it helped resolve it swiftly. The fix is released with version 5.0.1.

@monim67 monim67 closed this as completed Nov 23, 2022
@christianwgd
Copy link
Author

Thanks for the fast fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants