Real dates and time zones: store and compare instants in UTC
For whole days, turn dates into integers with date.toordinal(). Then runs work across a month or a year boundary with the code you already have:
from datetime import date, datetime, timezone
from zoneinfo import ZoneInfo
print(date(2026, 12, 30).toordinal(), date(2027, 1, 2).toordinal())
new_york = ZoneInfo("America/New_York")
midnight = datetime(2026, 11, 1, tzinfo=new_york)
next_midnight = datetime(2026, 11, 2, tzinfo=new_york)
print(next_midnight - midnight)
print(next_midnight.astimezone(timezone.utc) - midnight.astimezone(timezone.utc))
739980 739983
1 day, 0:00:00
1 day, 1:00:00
For times, the trap is daylight saving. When both datetimes carry the same tzinfo object, Python's subtraction ignores the zone, as its docs say. So midnight to midnight on November 1, 2026 in New York comes out as 1 day. Converted to UTC first, the same two instants are 25 hours apart. March 8, 2026, the day the clocks go forward, is 23 hours long.
Overlaps across zones go wrong as well. A 9:00 to 10:00 meeting in New York and a 14:00 to 15:00 meeting in London never overlap as local times.
New York ends daylight time a week after London. On November 2, do 9:00 to 10:00 in New York and 14:00 to 15:00 in London overlap?