Opened 5 years ago
Last modified 5 years ago
#30819 closed Bug
Locales that are by default set to use two digits year will show invalid year on date picker UI — at Version 1
Reported by: | Aldian Fazrihady | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | datepicker |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
I am using id
locale. Somehow, on that locale, the django admin uses two digits year to be displayed in input fields.
The datepicker UI will display this wrong year:
Instead of showing year 2019, it shows year 1919.
If I changed the locale to en
, the datepicker will display the correct year (2019).
Therefore, my workaround for this problem is to use 4 digits year for that locale by configuring FORMATE_MODULE_PATH.
However, it is quite clear that there is a bug in the datepicker display.
Change History (2)
by , 5 years ago
Attachment: | Screenshot from 2019-09-30 18-36-39.png added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
screenshot