Time Zones Are a Scam, and You’re Paying for Them in Production
A calm, balanced analysis. (It is neither.)
In 1883, US and Canadian railroads adopted standard time zones, because every town kept its own noon and timetables were a mess. It was a sensible patch for the timetable era.
Today GPS delivers UTC to within tens of nanoseconds, and NTP over the internet gets to millisecond-level accuracy. Agreeing on the time worldwide is a solved problem. The patch outlived the problem it solved by well over a century and became load-bearing, which is how you end up with a whole category of software whose job is converting one number into another number.
And the worst part isn’t the cost. It’s that we’ve normalized it so thoroughly that most people can’t picture the alternative, even though the alternative is the simplest thing imaginable: everyone uses the same clock.
The upkeep is absurd
A small group of volunteers on a mailing list maintains the IANA time zone database, the basis for local time on most modern operating systems. It exists because governments keep changing their minds about what time it is. In 2011 an astrology-software company sued its maintainers, the server went dark, and ICANN had to take over hosting (the suit was later withdrawn). Think about that next time your phone shows the right local time.
Samoa deleted an entire day in 2011 by moving across the date line. In 2007 the US extended daylight saving time by four weeks, and operating systems, databases and calendars needed patches or ran an hour off. In October 2022 Mexico’s Senate voted to abolish DST, with the change due four days later. Nepal sits at UTC+5:45, the Chatham Islands at +12:45, and Lord Howe Island shifts by thirty minutes for daylight saving, because a full hour was apparently too tidy.
NTP does not carry any of this. It distributes UTC only; the offsets and DST rules live in a time zone database on each device, updated through ordinary OS and package updates, separately from the clock. When a government changes its rules, the device keeps perfect UTC and shows the wrong local time until its copy of the rules is updated.
How fast that happens depends on the update channel. Android’s engineers describe a pipeline of IANA release, integration, testing and rollout that can take weeks, for changes governments often announce a month or less ahead. Many Android phones receive new rules directly through Google Play system updates; others wait for their manufacturer’s update schedule.
A bug factory with a calendar app
Time zones, and DST especially, produce bugs with remarkable consistency:
- In zones that change at 02:00, one night a year the clock skips from 02:00 to 03:00, so 02:30 never happens. Another night it falls back to 01:00 and every time in that hour happens twice. Microsoft’s documentation calls these “invalid” and “ambiguous” times; UTC has neither.
- Schedulers need special DST logic. Vixie-derived cron documents special handling for time changes under three hours, yet there are user reports of jobs skipped or run twice, depending on the implementation.
- A “local” timestamp stored without its offset is ambiguous for one hour a year: you can’t tell which of two instants it meant.
- London and Los Angeles don’t keep a constant offset, because the US and UK change clocks on different days. A recurring meeting set in one city’s local time shifts by an hour for the other city for part of the year.
- Windows and IANA name their zones differently, and the mapping between them (CLDR’s windowsZones.xml) is itself maintained and revised over time.
- The follow-up to the famous “falsehoods programmers believe about time” list includes the assumption that the offset between two time zones never changes.
How much code is that? Nobody has measured the total, but the samples are easy to find. A search for “timezone” on npm returns more than a thousand packages, from rule engines to dropdown pickers, and moment-timezone alone has thousands of dependent packages. Time zone handling has its own code in at least ten languages, among them JavaScript, Ruby, Java, Rust, Elixir, Erlang, D, C#, C++ and C.
The major libraries run to tens of thousands of lines each. Open Hub counts about 22,000 lines in Ruby’s TZInfo, which exists only for time zone conversion, and about 53,000 in the Java ThreeTen backport, which covers the full date-time API. Each is a separate implementation of the same rules.
Hardware pays too
By default, Windows keeps the hardware clock in local time, while Linux typically keeps it in UTC. Dual-boot a machine and your clock is off by your UTC offset until someone intervenes. This long-running annoyance exists only because “local time” exists.
A device that keeps its own copy of the zone rules is right only until the rules change. Time-sync vendor Meinberg notes that operating systems out of support stop receiving rule updates, and that embedded systems often never get firmware updates at all.
“But 9 AM means morning!”
No. It doesn’t, and it never did. “9 AM” means “the number my political region assigned to the position of the sun, give or take a few hundred kilometers and one summer policy.”
Solar time shifts by four minutes per degree of longitude, so even an ideal one-hour zone has the sun rising up to an hour apart across its width. Real zones are worse. Western China runs on Beijing time: in Kashgar, solar noon can fall as late as 15:10 on the official clock.
Some residents of Xinjiang run an unofficial local time two hours behind Beijing; others simply schedule their days later. Either way, the number on the clock is a convention people bend. In London, sunrise swings from roughly 4:45 AM in June to about 8 AM in December. The clock already doesn’t track the sun, and nobody has ever missed that.
Morning is something you see out the window. It doesn’t need a number. Your shift starts at 14:00 where you live, and that’s all you need to know. It works the way train departures, flights and store hours already work: you learn when the thing happens. Nobody needs a 14:00 flight to feel like the afternoon. People memorize one schedule instead of a conversion table with DST footnotes.
Jet lag doesn’t come from the numbers on the clock. It comes from your body clock being out of step with the local light-dark cycle, and one global clock leaves the sun exactly where it was. And the date flipping in the middle of your afternoon? Air traffic control already runs on UTC; the FAA uses it for all operations.
The fix is boring
One clock. UTC. For everything.
Store UTC (you already should). Display UTC. No tzdata, no DST rules, no conversion layer, no ambiguous hour, no “which 9:00?” Delete a database, a category of libraries and an entire species of bug, and stop shipping time zone updates to every device in existence.
Local habits survive just fine: “we open at 14:00” is a schedule like any other, and cultures have always adapted to schedules.
People adapt
People will tell you this is impossible, because it’s “how things have always been.” It isn’t. Standard time began as a railway timetable workaround, in Britain in the 1840s and in North America in 1883.
Retire the workaround.