Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pytz giving incorrect offset and timezone

Reply
Thread Tools

pytz giving incorrect offset and timezone

 
 
Sanjay
Guest
Posts: n/a
 
      07-13-2007
Hi All,

I am facing some strange problem in pytz.

The timezone "Asia/Calcutta" is actually IST, which is GMT + 5:30. But
while using pytz, it is being 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

A similar problem is also posted at
http://groups.google.co.in/group/com...496e85797ac890
without any responnses.

Unable to know how to proceed. Needing help. Tried posting in
launchpad and mailed to Stuart, but yet to get any response.

thanks
Sanjay

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing offset-aware and offset-naive datetimes? Roy Smith Python 4 01-27-2013 03:17 PM
fromutc: dt.tzinfo is not self: pytz.timezone('UTC').fromutc(datetime.utcnow()) aspineux Python 3 10-21-2011 04:06 PM
Update pytz timezone definitions _robby Python 1 03-14-2008 12:50 PM
pytz giving incorrect offset and timezone Sanjay Python 2 07-18-2007 12:23 PM
Datetime, pytz and strange offset David Pratt Python 0 12-13-2005 10:48 AM



Advertisments