Bug#666502: python-tz: returns incorrect UTC offsets
Rémy Oudompheng
remyoudompheng at gmail.com
Sat Mar 31 07:59:20 UTC 2012
Package: python-tz
Version: 2010b-1
Severity: grave
Tags: upstream
Justification: renders package unusable
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
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-tz depends on:
ii python 2.6.6-3+squeeze6 interactive high-level object-orie
ii python-central 0.6.16+nmu1 register and build utility for Pyt
ii tzdata 2011n-0squeeze1 time zone and daylight-saving time
python-tz recommends no packages.
python-tz suggests no packages.
-- no debconf information
More information about the pkg-zope-developers
mailing list