Python Dates and Time Zones: 5 Bugs Reproduced
Add one day to a London time across the clock change, and only 23 real hours pass.
Video #140 ยท Python for data
Steps in the video
Files
- run.py (44 lines)
- zones.py (17 lines)
Tested with
Python 3.12.15 | tzdata==2026.5
What this does not show
Two zones and a few made-up 2026 times on one Windows run; it does not test other countries' rules, databases or calendars.
Sources
Learning IT by Example.