#29514: get_default_timezone() for UTC is no longer equivalent to timezone.utc
-------------------------------------+-------------------------------------
     Reporter:  Carlton Gibson       |                    Owner:  Carlton
                                     |  Gibson
         Type:  Bug                  |                   Status:  assigned
    Component:  Utilities            |                  Version:  2.1
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * cc: Sergey Fedoseev (added)


Comment:

 I'm not sure. It seems reasonable to fix the problem but having
 `get_default_timezone()` return a different type for a one-off case might
 lead to some issue.

 While investing, I noticed that `pytz.utc` is
 
[https://github.com/stub42/pytz/blob/9643b268e1b2df822bed3dfa134c90bd56275f4e/src/pytz/__init__.py#L194
 described] as "Optimized UTC implementation." yet the
 [https://github.com/django/django/pull/9484 offending commit] in Django
 says "Used datetime.timezone.utc instead of pytz.utc for better
 performance."

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29514#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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.7f6e2081a398bd5d82222b7560b0f811%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to