[issue762963] timemodule.c: Python loses current timezone
Paul Boddie
report at bugs.python.org
Fri Apr 16 23:57:14 CEST 2010
Paul Boddie <paul at boddie.org.uk> added the comment:
Well, this still doesn't work for me. I'm running Kubuntu 8.04 (libc6 package version 2.7-10ubuntu5) and reside in the CEST time zone, yet attempting to display the time zone always seems to give "+0000". Here are the failing tests, too:
======================================================================
FAIL: test_tm_gmtoff1 (__main__.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_time.py", line 225, in test_tm_gmtoff1
time.strftime("%z"), time.strftime("%z", time.localtime()))
AssertionError: '+0200' != '+0000'
======================================================================
FAIL: test_tm_gmtoff2 (__main__.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_time.py", line 238, in test_tm_gmtoff2
time.strftime("%z", time.localtime()), "+0000")
AssertionError: '+0000' == '+0000'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue762963>
_______________________________________
More information about the Python-bugs-list
mailing list