Bug#666502: python-tz: returns incorrect UTC offsets

Arnaud Fontaine arnau at debian.org
Mon May 21 08:36:01 UTC 2012


tags 666502 + squeeze
thanks

Hello,

Rémy Oudompheng <remyoudompheng at gmail.com> writes:

> In a Python shell (on 30 Mar 2012):
>
> >>> import datetime, pytz
> >>> now = datetime.datetime.now()
> >>> pytz.timezone("US/Hawaii").utcoffset(now)
> datetime.timedelta(-1, 48600)
>
> The  expected answer  is  datetime.timedelta(-1, 50400).   The bug  is
> known upstream and  was corrected in a later  version. Since timezones
> and offsets  are the main usage  of python-tz, this makes  the package
> unusable.
>
> The upstream bug is: https://bugs.launchpad.net/pytz/+bug/310606

I cannot reproduce this issue with  the current version available in Sid
(2011h-1), so I  guess this is a Squeeze-only issue.  Thanks for the bug
report.

Regards,
-- 
Arnaud Fontaine





More information about the pkg-zope-developers mailing list