pytz giving incorrect offset and timezone

Sanjay skpatel20 at gmail.com
Thu Jul 12 05:47:48 EDT 2007


Hi All,

Using pytz, I am facing a problem with Asia/Calcutta, described below.

Asia/Calcutta is actually IST, which is GMT + 5:30. But while using
pytz, it was recognized as HMT (GMT + 5:53). While I digged into the
oslan database, I see the following:

# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Asia/Calcutta 5:53:28 - LMT 1880 # Kolkata
               5:53:20 - HMT 1941 Oct # Howrah Mean Time?
               6:30 - BURT 1942 May 15 # Burma Time
               5:30 - IST 1942 Sep
               5:30 1:00 IST 1945 Oct 15
               5:30 - IST

Searching in this group, I saw a similar problem posted at
http://groups.google.co.in/group/comp.lang.python/browse_thread/thread/55496e85797ac890
without any solutions.

I mailed to Stuart and also posted it at the launchpad of pytz, but
did not get any response.

Unable to know how to proceed further. Any suggestion will be of vital
help.

thanks
Sanjay




More information about the Python-list mailing list