#23714: `date` filter raises an exception for naive datetimes during DST change
---------------------------------+--------------------------------------
     Reporter:  mbertheau        |                    Owner:  tricoder42
         Type:  Bug              |                   Status:  assigned
    Component:  Template system  |                  Version:  1.7
     Severity:  Normal           |               Resolution:
     Keywords:  timezone         |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  1                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by tricoder42):

 * owner:  nobody => tricoder42
 * status:  new => assigned
 * needs_tests:  0 => 1


Comment:

 Tests are still missings. Should be simple though.

 I don't like the fix, but can't figure out anything better. As mentioned
 in PR: The except block catching all exceptions is ugly, but I can't rely
 on pytz library, which is optional, and therefore I can't catch
 pytz.exceptions.AmbiguousTimeError exception.

--
Ticket URL: <https://code.djangoproject.com/ticket/23714#comment:7>
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/067.26b2a86027a30676292d0894421409d0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to