timemodule.c: Python loses current timezone

Bug #564607 reported by Grant Bowman
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python2.6 (Ubuntu)

Bug Description

Binary package hint: python2.6

Python routines in timemodule.c sometimes force glibc to use GMT instead of the correct timezone.

PHP and Perl don't have this bug. This has been filed upstream since 2003 as http://bugs.python.org/issue762963 and has a patch (and a test) that needs a review.

I think I reproduced this by:
$ python
>>>import time
>>>time.strftime("%Z", time.localtime())
>>>time.strftime("%z", time.localtime())

Revision history for this message
Grant Bowman (grantbow) wrote :
tags: added: patch
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Upstream tracker is still testing the patch and there seems to be some issues, we'll wait until it gets accepted or confirmed perfect before getting the fix in.

tags: added: patch-needswork
removed: patch
Changed in python:
status: Unknown → New
Revision history for this message
dino99 (9d9) wrote :

Support for this version has ended

Changed in python2.6 (Ubuntu):
status: New → Invalid
Changed in python:
importance: Unknown → Undecided
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.