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 Initial Version

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

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:
https://drive.google.com/file/d/17KEkY89TqimwJIJ0kz-b2IJpYETpd46g/view

Instead of showing year 2019, it shows year 1919.

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 (1)

by Aldian Fazrihady, 5 years ago

screenshot

Note: See TracTickets for help on using tickets.
Back to Top