#13621: Regression in 1.2.1. date/time widgets are printing their values with an
invalid format
----------------------------------------+-----------------------------------
Reporter: bufke | Owner: zerok
Status: new | Milestone:
Component: Forms | Version: 1.2
Resolution: | Keywords:
Stage: Ready for checkin | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------+-----------------------------------
Changes (by jacmkno):
* stage: Accepted => Ready for checkin
Comment:
ticket13621-alternative2.diff - Details:
Django is currently using localization formatting only for the validations
and the client-side widget behavior but not when filling the initial data
of the field. So at first I thought the problem was about filling the
localized data in the field, but it turns out that both the widget and the
form field use the localized format if the localize attribute is set to
True. Finally I found that for validations, Django was not checking the
localize attribute but only the USE_L10N setting. Fixing this took
changing only 5 lines of code, hopefully it solves the AM/PM problem too,
but i'm not sure (haven't tested that yet).
--
Ticket URL: <http://code.djangoproject.com/ticket/13621#comment:13>
Django <http://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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.