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

Problem with date pickers and i18n #565

Closed
rolandgeider opened this issue Dec 2, 2020 · 0 comments
Closed

Problem with date pickers and i18n #565

rolandgeider opened this issue Dec 2, 2020 · 0 comments
Milestone

Comments

@rolandgeider
Copy link
Member

There's a problem when editing date fields that already have a value. The HTML standard expects the format for the date to be ISO860, i.e. 2020-12-30. This is a problem when the language is changed and the value is formatted differently, e.g. 30.12.2020.

All fields that use Html5DateField are affected. A possible solution is probably to overwrite django's template for it and manually making sure the date is correctly formatted django/forms/widgets/date.html but there might be others (I would find it strange that nobody else had this problem before)

@rolandgeider rolandgeider added this to the 2.0 milestone Dec 8, 2020
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

1 participant