#19371: django.forms.DateTimeField does not properly handle aware datetimes as
inputs
-----------------------------+---------------------------------------------
Reporter: delinhabit | Owner: nobody
Type: | Status: new
Uncategorized | Version: 1.4
Component: Forms | Keywords: forms, DateTimeField, timezones
Severity: Normal | Has patch: 0
Triage Stage: Unreviewed | UI/UX: 0
Easy pickings: 0 |
-----------------------------+---------------------------------------------
If you have aware datetimes as inputs to a Form or ModelForm the cleaned
values are localized to the local timezone discarding the timezone
information that is part of the input data.
For a better understanding of the use case I have created a small test
case (attached) to regress the issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/19371>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.