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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22798>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to