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 <rep...@bugs.python.org> <http://bugs.python.org/issue23332> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com