#35293: Django 5.x changes the date format on an <input type="date"> from
"2012-10-01" to "01/10/2012"
---------------------------------+--------------------------------------
     Reporter:  Shaheed Haque    |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Template system  |                  Version:  5.0
     Severity:  Normal           |               Resolution:  needsinfo
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Comment (by Claude Paroz):

 Note that Django itself has no widgets having `input type="date"` by
 default. This issue may be related to some custom code. See for example an
 implementation in one of my projects:
 {{{
 class DateInput(forms.DateInput):
     input_type = 'date'

     def format_value(self, value):
         return str(value) if value is not None else None
 }}}
 See also #33113
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35293#comment:4>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e33fcc1ec-9ef6b86b-6132-494a-b3e9-f047789f56a1-000000%40eu-central-1.amazonses.com.

Reply via email to