Eric V. Smith added the comment:
fromisoformat() is only designed to parse the output of isformat().
See issue 35829 for further discussion. I'm going to close this issue as a
duplicate.
--
nosy: +eric.smith
resolution: -> duplicate
stage: -> resolved
status: open -> closed
New submission from oittaa :
Test case:
>>> import datetime
>>> datetime.datetime.fromisoformat('2021-12-10T01:00:00Z')
Traceback (most recent call last):
File "", line 1, in
ValueError: Invalid isoformat string: '2021-12-10T01:00:00Z'
Basically every other programming language I tested