[Zope3-dev] OT: pytz

Florent Guillaume fg at nuxeo.com
Sun Jul 23 19:08:39 EDT 2006


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   fg at nuxeo.com





More information about the Zope3-dev mailing list