#24822: Autodetector crashes on add/removal of tzinfo from DateTimeField default
-------------------------------------+-------------------------------------
     Reporter:  Camilo Ernesto       |                    Owner:  nobody
  Forero                             |
         Type:  Bug                  |                   Status:  closed
    Component:  Documentation        |                  Version:  1.8
     Severity:  Normal               |               Resolution:  invalid
     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 Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This ticket is not valid anymore. Python 3.5+ no longer raises `TypeError`
 when comparing naive and aware `datetimes`:
 {{{
 Python 3.5.10 (default, Jan 25 2021, 09:05:45)
 [GCC 9.3.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from datetime import datetime
 >>> import pytz
 >>> default=datetime(2015, 7, 4, 8, 0 )
 >>> default2=datetime(2015, 7, 4, 8, 0, tzinfo=pytz.UTC)
 >>> default != default2
 True
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/24822#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.1b6c61dbb8090e6db5da03def7e3355d%40djangoproject.com.

Reply via email to