[issue22241] strftime/strptime round trip fails even for UTC datetime object

Alexander Belopolsky report at bugs.python.org
Fri Aug 22 02:56:11 CEST 2014


Alexander Belopolsky added the comment:

Akira,

I see that you participated in the original discussion (msg107608).  We settled on str(timezone.utc) == 'UTC+00:00' and this was clearly a deliberate choice.  I don't think we can revisit this now, but we can probably make strptime smart enough to parse UTC±hh:mm with %Z format code.

----------

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


More information about the Python-bugs-list mailing list