This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients akira
Date 2014-11-05.12:12:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415189548.18.0.514821385606.issue22798@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-11-05 12:12:28akirasetrecipients: + akira
2014-11-05 12:12:28akirasetmessageid: <1415189548.18.0.514821385606.issue22798@psf.upfronthosting.co.za>
2014-11-05 12:12:27akiralinkissue22798 messages
2014-11-05 12:12:27akiracreate