[issue23332] datetime.isoformat() -> explicitly mark UTC string as such
Alexander Belopolsky
report at bugs.python.org
Tue Jan 27 20:00:51 CET 2015
Alexander Belopolsky added the comment:
> When using utcnow() e.g. I would expect the result definitely being marked as UTC.
Don't use utcnow(). This is a leftover from the times when there was no timezone support in datetime.
The documentation for utcnow [1] already points you in the right direction, but we can consider formally deprecating it together with utcfromtimestamp.
[1] https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23332>
_______________________________________
More information about the Python-bugs-list
mailing list