#30819: Locales that prioritize 2-digit years shows invalid year in admin date picker. --------------------------------------+------------------------------------ Reporter: Aldian Fazrihady | Owner: nobody Type: Bug | Status: new Component: Internationalization | Version: 3.0 Severity: Normal | Resolution: Keywords: datepicker | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------ Changes (by felixxm):
* ui_ux: 1 => 0 * component: contrib.admin => Internationalization * version: 2.2 => 3.0 * stage: Unreviewed => Accepted Comment: I agree we should prioritize date formats with 4-digits year in `id` locales, e.g. {{{ diff --git a/django/conf/locale/id/formats.py b/django/conf/locale/id/formats.py index 1458230c28..de2d1535ff 100644 --- a/django/conf/locale/id/formats.py +++ b/django/conf/locale/id/formats.py @@ -14,8 +14,8 @@ FIRST_DAY_OF_WEEK = 1 # Monday # The *_INPUT_FORMATS strings use the Python strftime format syntax, # see https://docs.python.org/library/datetime.html#strftime-strptime- behavior DATE_INPUT_FORMATS = [ - '%d-%m-%y', '%d/%m/%y', # '25-10-09', 25/10/09' '%d-%m-%Y', '%d/%m/%Y', # '25-10-2009', 25/10/2009' + '%d-%m-%y', '%d/%m/%y', # '25-10-09', 25/10/09' '%d %b %Y', # '25 Oct 2006', '%d %B %Y', # '25 October 2006' ] }}} -- Ticket URL: <https://code.djangoproject.com/ticket/30819#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.f1b27c286cadafd1742634c55991ad8c%40djangoproject.com.