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 BreamoreBoy, belopolsky, mirabilos, mirkovogt, r.david.murray
Date 2015-08-28.21:36:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440797797.23.0.392622558724.issue23332@psf.upfronthosting.co.za>
In-reply-to
Content
The premise of this issue is factually incorrect:

> ISO 8601, which states that, if no timezone is specified,
> the string is supposed to be interpreted as UTC implicitly.

The opposite is true: "If no UTC relation information is given with a time representation, the time is assumed to be in local time." <https://en.wikipedia.org/wiki/ISO_8601>

To get timezone specification included in isoformat() output - use aware datetime objects:

>>> from datetime import *
>>> datetime.now(timezone.utc).isoformat()
'2015-01-27T18:27:33.216857+00:00'
History
Date User Action Args
2015-08-28 21:36:37belopolskysetrecipients: + belopolsky, r.david.murray, BreamoreBoy, mirabilos, mirkovogt
2015-08-28 21:36:37belopolskysetmessageid: <1440797797.23.0.392622558724.issue23332@psf.upfronthosting.co.za>
2015-08-28 21:36:37belopolskylinkissue23332 messages
2015-08-28 21:36:36belopolskycreate