You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A ValueError is raised with message "Invalid isoformat string: '2024-09-18T19:33:00Z'"
Description
ISO 8601 says:
"If the time is in UTC, add a Z directly after the time without a space. Z is the zone designator for the zero UTC offset. "09:30 UTC" is therefore represented as "09:30Z" or "T0930Z". "14:45:15 UTC" would be "14:45:15Z" or "T144515Z"."
I'm calling a REST API that sometimes returns datetimes this way. adafruit_datetime.datetime.fromisoformat() doesn't seem to support them and raises a ValueError.
Additional information
No response
The text was updated successfully, but these errors were encountered:
CircuitPython version
Code/REPL
Behavior
A
ValueError
is raised with message "Invalid isoformat string: '2024-09-18T19:33:00Z'"Description
ISO 8601 says:
"If the time is in UTC, add a Z directly after the time without a space. Z is the zone designator for the zero UTC offset. "09:30 UTC" is therefore represented as "09:30Z" or "T0930Z". "14:45:15 UTC" would be "14:45:15Z" or "T144515Z"."
I'm calling a REST API that sometimes returns datetimes this way.
adafruit_datetime.datetime.fromisoformat()
doesn't seem to support them and raises aValueError
.Additional information
No response
The text was updated successfully, but these errors were encountered: