[Zope-dev] DateTime, Australian and US Timezones

Lennart Regebro regebro at gmail.com
Tue Dec 18 12:58:58 EST 2007


OK, I have looked HARD at this now. And dateutil.tz solves this. I
don't think Zope can solve this with pytz, unless we implement the
same solution in pytz as already exists in dateutil.tz. It solves it
by implementing a tzinfo class that wraps zoneinfo files, and that way
you simply wrap /etc/localtime and get the right info.

I have tried the suggested solution of matching TZ names and offsets
and it doesn't work, becuase you'll end up in the correct time zone
but not in the correct location, and hence not with the correct
daylight saving.

More info: http://regebro.wordpress.com/2007/12/18/python-and-time-zones-fighting-the-beast/

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Zope-Dev mailing list