On the night of 30 June 2012, the world's clocks did something they almost never do: they added a second. The last minute of the day ran to 61 seconds — 23:59:59, then 23:59:60, then midnight — and within the hour, parts of the internet were falling over. This is a research-based account, drawn from the sources listed at the end. Nobody on this page was in a data centre that night. It shows how a single second, inserted on purpose by the people in charge of time itself, can break systems that assumed every minute has exactly sixty of them.
There are two ways to measure time, and they disagree. The first is atomic time: caesium atoms vibrate at a fixed rate, and atomic clocks count those vibrations. They never speed up or slow down. The second is solar time, measured by the Earth's rotation — and the Earth is a lumpy, tide-dragged sphere that does not spin at a fixed rate. Tidal friction from the Moon is slowly braking the planet, lengthening the average day by roughly two milliseconds per century, while earthquakes and shifting ice and winds nudge it the other way: the 2004 Indian Ocean earthquake is thought to have shortened the day by 2.68 microseconds, and 29 June 2022 was the shortest day ever recorded, 1.59 milliseconds under 24 hours.
Coordinated Universal Time (UTC), the time your phone and your bank use, is built on atomic time but is kept within 0.9 seconds of solar time. Whenever the gap approaches that limit, the International Earth Rotation and Reference Systems Service (IERS) orders a leap second, announced six months in advance, slipped in at the end of 30 June or 31 December. Since the system began in 1972, 27 leap seconds have been added — the last on 31 December 2016 — leaving atomic time 37 seconds ahead of UTC. GPS, notably, sidesteps the whole problem: GPS Time ignores leap seconds, as our piece on how GPS works explains.
The 25th leap second, on 30 June 2012, is the one the internet remembers. The heaviest damage landed on Amadeus Altéa, the booking platform behind a large share of the world's airlines: it stayed offline for about an hour, and check-in staff at Qantas and Virgin Australia put down their keyboards and started processing passengers by hand. Reddit went down — its Cassandra database had seized up — along with LinkedIn, Yelp, Mozilla, Foursquare, StumbleUpon and Gawker: a small preview of what happens when the internet disappears, caused by one second.
The cause was a bug in the Linux kernel that had been sitting quietly broken since the previous leap second at the end of 2008. The timekeeping code inserted the extra second but never told the high-resolution timer code that the clock had shifted. Timers due to fire moments later decided their deadline had already passed and fired at once — then reset and fired again, in a loop. Servers did not crash. They sprinted on the spot, burning every scrap of processor capacity while accomplishing nothing at all. It is the same family of disaster as the missing hyphen that blew up a rocket to Venus: a tiny, invisible error in something everyone assumed was settled.
And the fix that circulated among sysadmins that weekend was almost insulting in its simplicity: reset the system clock to the time it already believed it was — date -s "$(date)". The kernel registered the change, the stuck timers recalculated properly, and the spinning stopped. Google, meanwhile, had dodged the whole thing. A year earlier, engineer Christopher Pascoe had described Google's "leap smear": its time servers spread the extra second across hours of slightly longer seconds, so no machine ever saw the odd timestamp — an idea born from a smaller scare in 2005, when some of Google's systems stopped accepting work during that year's leap second.
The next two leap seconds were quieter, but not silent. On 30 June 2015, roughly 2,000 networks dropped offline just after midnight UTC — nearly half of them in Brazil — most back within minutes once a router was rebooted. The 31 December 2016 leap second, the most recent, passed with no major outages reported: by then the kernels were fixed and the big platforms had all adopted leap smear.
There is also a stranger possibility. The Earth's rotation has been speeding up in recent years, and engineers have begun discussing a negative leap second — a second taken away rather than added. No such removal has ever been foreseen or tested: half a century of timekeeping code has never once been asked to skip a second.
In November 2022, the General Conference on Weights and Measures voted to abandon the practice altogether, with leap-second insertions due to cease by 2035. Then, in October 2026, the same body went further, voting to widen the permitted gap between atomic and solar time from 0.9 seconds to a full hour, effective 20 May 2027 — retiring the leap second years ahead of schedule. With the tolerance that wide, it may be centuries before UTC needs another adjustment.
The leap second was a patch, not a solution: a way to pretend two different definitions of time — the steady tick of atoms and the wobble of a planet — were the same thing. Its retirement does not settle the argument; it admits the planet is too irregular to be a clock, and the internet too important to be tripped by one second. The real lesson of 2012: the most dangerous bugs are not in code nobody uses, but in code nobody tests — the quiet assumptions, like "every minute has sixty seconds", that hold up the world until the one night they don't.
Related on Poptani Labs: How GPS works: atomic clocks in space, Einstein, and a tragedy, The missing hyphen that blew up a rocket to Venus, What would happen if the internet disappeared tomorrow?. More in this category: The World, Explained.
Sources: Leap second — Wikipedia, The 2012 leap second that tripped up parts of the internet — ScienceBlog, Leap Seconds Explained — Coordinately