[Zope-dev] Changing DateTime to use pytz

Amos Latteier amos at latteier.com
Wed Oct 3 15:57:59 EDT 2007


Hello,

I'm working on changing DateTime to use pytz for timezone information.

The motivation is that DateTime doesn't have up to date daylight
savings time information. Rather than maintaining this stuff in
DateTime it seems easier to delegate this work to a package that does
this jobs better and is kept up to date.

My approach is to use timezone information from pytz if it is
importable, otherwise, the existing DateTime timezone information is
used. I haven't made other changes to DateTime, and all existing
timezones that DateTime defines are still supported (even though pytz
doesn't know about some of the weird timezone names that DateTime
defines.)

I wanted to see if people are interested in seeing this go into Zope.

One issue is that there is a daylight savings change coming up in a
few weeks and so it might be nice to make these changes available to
folks before then if possible.

Thanks!

-Amos


More information about the Zope-Dev mailing list