[New-bugs-announce] [issue22798] time.mktime doesn't update time.tzname
Akira Li
report at bugs.python.org
Wed Nov 5 13:12:28 CET 2014
New submission from Akira Li:
time.tzname is initialized from C tzname variable or tm_zone around Jan, Jul of the current year.
If time.mktime() is called with a time tuple from the past/future then after the call time.tzname might be out-of-sync with the corresponding C tzname and tm_zone values. Because C mktime may change tzname, tm_zone values on some systems and time.mktime calls C mktime.
I've attached test_mktime_changes_tzname.c file that demonstrates that mktime() may change tzname.
----------
components: Library (Lib)
files: test_mktime_changes_tzname.c
messages: 230674
nosy: akira
priority: normal
severity: normal
status: open
title: time.mktime doesn't update time.tzname
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file37132/test_mktime_changes_tzname.c
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22798>
_______________________________________
More information about the New-bugs-announce
mailing list