#26711: Aware datetimes rendered through templates are changed to TIME_ZONE
---------------------------------+--------------------------------------
     Reporter:  aptiko           |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Template system  |                  Version:  1.9
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by aptiko):

 The behavior is the same in 1.8, 1.9, and master.

 According to the
 
[[https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#date|documentation
 for the template date filter]], the time zone name produced by the `e`
 format character "[c]ould be in any format, or might return an empty
 string, depending on the datetime." But with the current behavior it
 doesn't seem to depend on the datetime, but only on the TIME_ZONE setting.

 I investigated briefly and I think that it's not the `date` template
 filter that does it; this apparently receives an already modified date. So
 the change of time zone occurs earlier (but I'm not 100% certain on that).

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

Reply via email to