Sorry about the offtopic, but can anyone shed some light on this:

>>> import pytz
>>> from datetime import datetime
>>> tz = pytz.timezone('Europe/Paris'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset()
0:09:00
I expected 1 hour, not 9 minutes???

>>> tz = pytz.timezone('Europe/Berlin'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset()
1:00:00
That's ok

>>> tz = pytz.timezone('Europe/Brussels'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset()
0:00:00
That should be one hour too.

>>> tz = pytz.timezone('Europe/Luxembourg'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset()
0:25:00
Huh...

Am I to assume the pytz databases are buggy? I'm using a zope 3.3 checkout.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]



_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to