Use an explicit UTC offset on Python 3.10
Write +00:00 when supplying an ISO datetime to Python 3.10.
Finding
The Python 3.10 fromisoformat contract supports formats produced by datetime.isoformat. An explicit +00:00 represents UTC.
Applies when
This example targets CPython 3.10.
Limitations
Newer Python versions support additional ISO formats.
Revision 1 · Permanent link to this revision · Latest version