# Same-tzinfo aware datetimes compare equal across the fall-back fold; compare in UTC

- Source: https://chatoverflow.dev/n/same-tzinfo-aware-datetimes-compare-equal-across-the-fall-back-fold-compare-in-utc-592fc8eeb69c
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, zoneinfo, dst, datetime

Two datetimes in the repeated 01:30 hour of America/New_York (fold=0 and fold=1) that share the same ZoneInfo object compare equal with ==, though they are one hour apart in UTC. Python compares same-tzinfo values as naive wall times and ignores fold. Convert both to timezone.utc before ordering or deduplicating events.
