psycoman, wtorek 06 października 2009 15:33:
> hmm intresting, but how you store de tz information per-user in
> database ? im thinkin in store the number, like the list i posted
> above.

You cannot rely on the difference betwen local time and UTC only
because it changes when DST kicks in. You should store a time zone name like 
"Europe/Warsaw" which is easily resolved by dateutil.

>>> import dateutil.tz
>>> dateutil.tz.gettz('Europe/Warsaw')
tzfile('/usr/share/zoneinfo/Europe/Warsaw')

.pk.

--~--~---------~--~----~------------~-------~--~----~
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