Is anyone aware of a reason why the built-in time template filter does not 
have timezone support?  The built-in date template filter has timezone 
support, but I wanting to use the TIME_FORMAT default stuff linked to the 
time filter.

Was timezone considered to be not relevant for the time filter? I found the 
bit in the Time Zone documentation about Django only supporting naive 
datetime.time objects, so I suppose this might have been the justification 
for not supporting timezones in the time filter. However, the time filter 
can be applied to datetime.datetime objects as well, to display only the 
time portion. That might even be the most common use case. It is at least 
my use case. In that context, I would think the timezone IS relevant.

What I'm wanting to be able to do is set settings.TIME_FORMAT = 'g:i a T' 
and then use <datetime_var>|time in my templates to get times with 
timezones at the end.

I would prefer not to have to resort to a custom filter for what seems to 
be very generic behavior. What am I doing wrong?



-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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].
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to