[New-bugs-announce] [issue10634] Windows timezone changes not reflected by time.localtime

Eric Pruitt report at bugs.python.org
Mon Dec 6 00:57:24 CET 2010


New submission from Eric Pruitt <eric.pruitt at gmail.com>:

If the current time zone changes on Windows, time.localtime will continue to return results that reflect the time zone the system used when the module was imported. My current work around is to use GetLocalTime from kernel32 with ctypes. Windows does not have a tzset() equivalent as it does in Linux, but it seems like modifying time.localtime to use GetLocalTime on Windows systems could make up for this shortcoming.

----------
components: Windows
messages: 123442
nosy: eric.pruitt
priority: normal
severity: normal
status: open
title: Windows timezone changes not reflected by time.localtime
type: behavior
versions: Python 2.5, Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10634>
_______________________________________


More information about the New-bugs-announce mailing list