#31948: Add support for tzinfo parameter to TruncDate() and TruncTime().
-------------------------------------+-------------------------------------
Reporter: Joe Jackson | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* cc: Aymeric Augustin, Josh Smeaton (added)
* version: 3.1 => master
* keywords: TruncDate =>
* type: Bug => New feature
* stage: Unreviewed => Accepted
Comment:
`tzinfo` is not a documented (or tested) parameter of
[https://docs.djangoproject.com/en/3.1/ref/models/database-
functions/#django.db.models.functions.TruncDate TruncDate()] or
[https://docs.djangoproject.com/en/3.1/ref/models/database-
functions/#django.db.models.functions.TruncTime TruncTime()] so it's not a
bug but request for a new feature.
It sounds reasonable to support `tzinfo` in `TruncDate()` and
`TruncTime()`, and I cannot find any argument against it in the original
[https://github.com/django/django/pull/6243 PR] (maybe Josh will remember
sth).
--
Ticket URL: <https://code.djangoproject.com/ticket/31948#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/070.45ec26d4b61805faf2e8e6fe026c9dae%40djangoproject.com.