Re: value|localize possibly breaking timezone display in templates

2013-04-11 Thread Aymeric Augustin
2013/4/11 Yo-Yo Ma > > Should the docs be updated to reflect this (i.e., it is intended), or > should I file a bug ticket? > The |localize template filter doesn't use the expects_localtime flag [1] because this flag requires to the filter to only accept datetimes as input. You can file a ticket.

value|localize possibly breaking timezone display in templates

2013-04-10 Thread Yo-Yo Ma
If you include {{ object.some_datetime }} with the America/New_York timezone activated in a template and get: April 10, 2013, 10:00 p.m. Then, take the same object, timezone, etc., and add the |localize filter - {{ object.some_datetime|localize }} - you'll get: April 11, 2013, 2:00 a.m. It se