[issue6165] strftime incorrectly processes DST flag when passed time touples

Jonathan report at bugs.python.org
Mon Jun 1 19:53:27 CEST 2009


Jonathan <jonathan.cervidae at gmail.com> added the comment:

kludged_zone = ("+" if time.altzone < 0 else '-') +
time.strftime("%H%M",time.gmtime(abs(time.altzone)))
time_zone_format_string = time_zone_format.replace("%z", kludged_zone)

----------

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


More information about the Python-bugs-list mailing list