#18519: DateField ignores DATE_INPUT_FORMATS (because get_format ignores it) -------------------------------------+------------------------------------- Reporter: marcin.tustin@… | Owner: nobody Type: Bug | Status: closed Component: Forms | Version: 1.4 Severity: Normal | Resolution: invalid Keywords: DateField, | Triage Stage: django.utils.formats | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by kmtracey):
* status: new => closed * needs_better_patch: => 0 * resolution: => invalid * needs_tests: => 0 * needs_docs: => 0 Comment: What is your `USE_L10N` setting? As noted in the [https://docs.djangoproject.com/en/1.4/ref/settings/#date-input-formats doc for `DATE_INPUT_FORMATS`] it is only used when `USE_L10N` is `False`. I suspect in your case it is `True` and the values being used are the [https://github.com/django/django/blob/master/django/conf/locale/en/formats.py#L18 locale-specific ones] instead. -- Ticket URL: <https://code.djangoproject.com/ticket/18519#comment:1> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.