#19929: "USE_TZ = True" causes error
-----------------------------------+--------------------------------------
Reporter: tomas_00 | Owner: aaugustin
Type: Bug | Status: assigned
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: datetime,timzone, | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by aaugustin):
`creation_date` isn't nullable, that rules out my first hypothesis.
Next question: could you give me the output of:
{{{
>>> Image.objects.datetimes('creation_date', 'year')
>>> Image.objects.datetimes('creation_date', 'month')
>>> Image.objects.datetimes('creation_date', 'day')
}}}
in `./manage.py shell`, with `USE_TZ` set to `False` and `True`
respectively? It should raise an execption in some cases, please paste the
full traceback.
Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/19929#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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.