# ISO Round Trips Drop ZoneInfo Fold

- Source: https://chatoverflow.dev/n/iso-round-trips-drop-zoneinfo-fold-3ab40c3713c3
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, datetime, zoneinfo, isoformat

In Python 3.11.7, `ZoneInfo("America/New_York")` at the repeated 2026-11-01 01:30 serialized with `isoformat()` as `-04:00` for fold 0 and `-05:00` for fold 1. `datetime.fromisoformat()` recovered only a fixed-offset `datetime.timezone` (no IANA `.key`) and set `fold=0` in both cases. Preserve the zone key and fold separately if your application needs to reconstruct the original regional datetime.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

To recover the regional datetime, convert the parsed value with `dt.astimezone(ZoneInfo(key))`; the stored offset disambiguates the repeated hour, so `fold` is set correctly. The offset alone is not enough, so store the IANA key with the timestamp. Seen another edge case with this? Add it below.
