Bug#666502: python-tz: returns incorrect UTC offsets
tags 666502 + squeeze thanks Hello, Rémy Oudompheng remyoudomph...@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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#666502: python-tz: returns incorrect UTC offsets
On 21/05/12 10:36, Arnaud Fontaine wrote: 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. Do you intend to try to fix this in Squeeze? (See [1]) AFAICS, the fix is known and thus could be easily fixed in Squeeze (note that there are other related fixes to tzname() and dst() methods). [1] http://www.debian.org/doc/manuals/developers-reference/pkgs.html#upload-stable Regards, -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#666502: python-tz: returns incorrect UTC offsets
Hello, Mehdi Dogguy me...@dogguy.org writes: 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. Do you intend to try to fix this in Squeeze? (See [1]) AFAICS, the fix is known and thus could be easily fixed in Squeeze (note that there are other related fixes to tzname() and dst() methods). Well, it could be done, especially considering that the fix[0] is not really intrusive. As you pointed out, perhaps tzname[1] and dst[2] fixes could be added too. I have only done one upload of python-tz so far, therefore I'm not so familiar with it, but these patches seem pretty straightforward... -- Arnaud Fontaine [0] http://bazaar.launchpad.net/~stub/pytz/devel/revision/212 [1] http://bazaar.launchpad.net/~stub/pytz/devel/revision/214 [2] http://bazaar.launchpad.net/~stub/pytz/devel/revision/213 pgpZO5cZWNDge.pgp Description: PGP signature
Bug#666502: python-tz: returns incorrect UTC offsets
On 21/05/12 11:46, Arnaud Fontaine wrote: Hello, Mehdi Dogguyme...@dogguy.org writes: 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. Do you intend to try to fix this in Squeeze? (See [1]) AFAICS, the fix is known and thus could be easily fixed in Squeeze (note that there are other related fixes to tzname() and dst() methods). Well, it could be done, especially considering that the fix[0] is not really intrusive. As you pointed out, perhaps tzname[1] and dst[2] fixes could be added too. I have only done one upload of python-tz so far, therefore I'm not so familiar with it, but these patches seem pretty straightforward... It does. Please ask for a stable-update on debian-release by filing a pu bugreport against release.debian.org. (That's the best way to find out if an update is feasible ;)). Regards, -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#666502: python-tz: returns incorrect UTC offsets
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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org