I'm starting a new project in Pyramid. It will have many financial
reports for our customers [1] chock full of datetime objects, all
stored at UTC in PostgreSQL. Assuming I have a function that returns a
visitor's time zone, what's the easiest way to render all those
datetimes in that timezone? It's easy enough to use
babel.dates.format_datetime and pytz on a case-by-case basis, but that
runs into thousands of "casts" in my case. Is there an easy way to,
say, configure Chameleon to render all datetimes in templates in a
given time zone?

[1] Shameless plug: http://pypi.python.org/pypi/TableFactory/

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to