#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
-------------------------------------+-------------------------------------

Comment (by Josh Smeaton):

 There was no explicit reason to ignore any passed in tz parameter - it was
 just a reimplementation of the existing method:
 
https://github.com/django/django/commit/2a4af0ea43512370764303d35bc5309f8abce666
 #diff-b6b218ec29b7fb6a7d89868a94bfc73eL492

 Trunc documents the use of tzinfo:
 
https://github.com/django/django/commit/2a4af0ea43512370764303d35bc5309f8abce666
 #diff-34b63f01d4190c08facabac9c11075ccR512 and it should reasonably apply
 to all subclasses of Trunc as well.

 I think accept as a bug is the correct decision here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31948#comment:5>
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.f43b3df5bb077c4fb70900facf30001a%40djangoproject.com.

Reply via email to