#31640: Trunc() function take tzinfo param into account only when
DateTimeField()
are used as output_field
-------------------------------------+-------------------------------------
Reporter: Serhii Romanov | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: trunc timezone tz | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
It does pass the test suite so it looks like this is definitely a bug. I
think we should go as far as raising an exception when `Extract(tzinfo)`
and `Trunc(tzinfo)` is specified for a left hand side that doesn't have a
`isinstance(lhs.output_field, DateTimeField)`.
--
Ticket URL: <https://code.djangoproject.com/ticket/31640#comment:2>
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/071.7630b6009ff2f03c05c4a96fd06d6831%40djangoproject.com.