Message230674
| 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:28 | akira | set | recipients:
+ akira |
| 2014年11月05日 12:12:28 | akira | set | messageid: <1415189548.18.0.514821385606.issue22798@psf.upfronthosting.co.za> |
| 2014年11月05日 12:12:27 | akira | link | issue22798 messages |
| 2014年11月05日 12:12:27 | akira | create |
|