#25024: Discrepancy between /admin/ DateTimePicker.js date format and
SHORT_DATE_FORMAT in /en/ lang
-------------------------------+--------------------
Reporter: wdoekes | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
A question:
DateTimeShortcuts.js uses `get_format('DATE_INPUT_FORMATS')[0]` while the
rest of a Django application uses `SHORT_DATE_FORMAT` to format dates.
https://github.com/django/django/blob/master/django/conf/locale/en/formats.py#L13
https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L330
Shouldn't formats.py be adjusted so `DATE_INPUT_FORMATS` holds
`'%m/%d/%Y'` which is equal to SHORT_DATE_FORMAT (`'m/d/Y'`)?
Further, I believe that the datepicker ignores the USE_L10N setting as
well (assuming it to be True). At least it used to in previous Django
versions.
Not sure whether to categorize under i18n or admin..
--
Ticket URL: <https://code.djangoproject.com/ticket/25024>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.5a784c1c9758ca2c8a917ac4c74972d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.