#10318: Template filter date format "U" produces a timestamp that is off by 
10-14
days
---------------------------+------------------------------------------------
 Reporter:  seanbrant      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 When trying to format a date in a template with {{{{{ mydate|date:"U"
 }}}}} the timestamp is off. Attached is a test case that first created a
 datetime object based on now then renders that in a template with the
 format {{{"U"}}} and compares that to outputting the date in python with
 {{{strftime('%s')}}}, this test fails. The next test outputs the date with
 the format {{{"Y-m-d H:i:s"}}} and compares that to outputting the date in
 python with {{{strftime(%F %T)}}}, this test passes. So it seems that only
 "U" is broken.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10318>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to