WorldClock.jp uses cookies for analytics and advertising. See About WorldClock.jp for details.

Skip to main content
WorldClock.jp

Real-World Bugs Daylight Saving Time Causes in Computer Systems

How daylight saving changes can break software: references to times that don't exist, jobs that run twice, outdated rules, and how this site avoids them.

For computer systems, the daylight saving time transition is a recurring moment of risk — one that comes around every year. Here we look at the general categories of bugs that have actually been reported.

Referencing a time that doesn't exist

At the spring transition, a time like 2:00 AM effectively doesn't exist (see "What Is Daylight Saving Time?" for details). Systems that scheduled an alarm or a batch job for exactly that nonexistent time have historically caused real problems — some silently skipped the run, others crashed with an error.

Duplicate execution from a repeated time

At the autumn transition, the same "1:00 AM hour" occurs twice. A recurring job meant to run once during that window can mistakenly conclude "this hasn't run yet" based on the clock time alone, and end up running twice. This is a classic pattern, and it's especially dangerous for anything where double-execution causes real harm, like payment processing or mass email sends.

Falling behind on rule changes

DST rules can change every few years as individual countries revise their own legislation (see also "Why Time Zone Identifiers Use City Names"). There have been real, widely reported incidents where a country suddenly changed its DST start date, and because many pieces of software and even smartphone time zone data hadn't yet been updated to the new rule, meetings and alarms across the world ended up shifted by an hour. When the US extended its DST period in 2007, for instance, so many organizations scrambled to patch time zone data in their existing systems that the whole effort became known, half-jokingly, as "Y2K7."

How this site avoids the problem

To avoid exactly these bugs, this site doesn't store fixed offset values — it calculates time using city-based identifiers (like Asia/Tokyo) tied to the IANA Time Zone Database, which is kept up to date with each region's rule changes. That means the correct time keeps being displayed even after a country changes its rules, with no extra work required on this site's part. An implementation that handles fixed offsets directly might look simpler at first, but it tends to saddle a team with exactly this kind of ongoing maintenance burden down the road. Which approach a team picks at the design stage tends to shape how much ongoing effort the system demands for years afterward.

Related Guides