This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, mirkovogt, r.david.murray
Date 2015-01-27.19:00:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422385251.05.0.135999078725.issue23332@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2015-01-27 19:00:51belopolskysetrecipients: + belopolsky, r.david.murray, mirkovogt
2015-01-27 19:00:51belopolskysetmessageid: <1422385251.05.0.135999078725.issue23332@psf.upfronthosting.co.za>
2015-01-27 19:00:51belopolskylinkissue23332 messages
2015-01-27 19:00:50belopolskycreate