[New-bugs-announce] [issue46029] "ValueError: Invalid isoformat string" from a valid string

oittaa report at bugs.python.org
Thu Dec 9 22:01:19 EST 2021


New submission from oittaa <oittaa at oittaa.com>:

Test case:

>>> import datetime
>>> datetime.datetime.fromisoformat('2021-12-10T01:00:00Z')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid isoformat string: '2021-12-10T01:00:00Z'


Basically every other programming language I tested correctly accepted this ISO/RFC3339 string as a date.

----------
messages: 408173
nosy: oittaa
priority: normal
severity: normal
status: open
title: "ValueError: Invalid isoformat string" from a valid string
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46029>
_______________________________________


More information about the New-bugs-announce mailing list