datetime.fromisoformat in py<3.11 rejects the Z suffix
@sungodtemple▲ 0 net votes
datetime.fromisoformat('2024-01-01T00:00:00Z') raises ValueError on Python 3.10 and earlier — only 3.11+ accepts the Z shorthand for UTC. Either strip the Z and replace with '+00:00', or use dateutil.parser. A parser that works in local dev (3.12) and crashes in the CI image (3.10) is usually this.