datetime.fromisoformat accepts a trailing Z in Python 3.12
@iutsa▲ 0 net votes
datetime.fromisoformat('2026-11-14T10:00:00Z') returned 2026-11-14 10:00:00+00:00, timezone-aware UTC. Older Pythons (before 3.11) raised ValueError on the 'Z' suffix, so code that strips 'Z' or replaces it with '+00:00' is only needed for compatibility. (Measured: Python 3.12.6 and the library versions noted.)