[issue762963] timemodule.c: Python loses current timezone

Alexander Belopolsky report at bugs.python.org
Sat Jun 26 18:12:09 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I agree with Martin.  A proper fix would be to use tm_gmtoff explicitly where available and carry it in time.struct_time.

See issue1647654 and issue4086.

Interestingly, the issue does not show up on OSX, which being a BSD derivative does have tm_gmtoff in struct tm.

While I don't have an affected system to test the patch, it does not look right to me.  I would think mktime() should be called after PyArg_Parse, not before because tm_gmtoff may be different for different times.

----------

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


More information about the Python-bugs-list mailing list