
On January 19, 2038, at seven seconds past 3:14 in the morning, Greenwich time, a great many computers will run out of seconds. One tick later they’ll believe the date is December 13, 1901.
You’ve heard a story like this before, and you think you know the ending, because you remember Y2K as the apocalypse that stood everybody up.
That memory is the problem. I know, because I was one of the people who made that night boring.
What Y2K actually was
Y2K was a self-created problem. In the days when memory cost real money, constantly not having to store the first two digits (“19” from “1995”) was a way to keep costs down. The problem was that the programmers aged out and forgot to remind their replacements to fix the problem. The bill came due on January 1, 2000.
In 1999 I managed the data center at a manufacturing plant for a pharmaceutical company whose name you’d recognize. In 1997, we started to take the problem seriously and the C-Suite folks finally understood the stakes. Eighteen months before the end of the century, every system we had went into lockdown. The only changes allowed were the ones needed to keep operating and stay secure. Hardware purchases were frozen, so nothing new could walk in the door carrying a fresh problem. The company dusted off dozens of retired COBOL programmers to go through the code and the data line by line.
None of that was cheap, and none of it was quick. Multiply it by every serious company on Earth and you get the number Gartner put on the worldwide bill: somewhere between $300 billion and $600 billion.
We ran drills, too. We shut down production on purpose, set the clocks forward, and watched how the systems behaved on the far side of midnight. A plant that makes medicine does not stop the line for fun.
On New Year’s Eve the whole team was on duty, running and re-running tests before midnight and after it. We had few problems, and the work was the only reason. We kept the change freeze in place until the middle of 2000 anyway.
The night wasn’t spotless everywhere. A Pentagon ground station lost the ability to process spy satellite data for two to three hours, then limped along on a backup until January 3. The U.S. Naval Observatory greeted the new millennium with a website announcing the year 19100. A video store in upstate New York billed a customer $91,250 for a tape the computer thought was a century overdue.
Those were the failures that slipped past a defense costing hundreds of billions. Almost nobody stopped to imagine the night without it.
No planes fell out of the sky, the lights kept working, and the public decided the whole business had been hype. Those of us who had worked the problem knew that was a bad assumption. Nir Oren, a computing scientist at the University of Aberdeen, has argued that the public took away the opposite of what Y2K should have taught. I’d put it more bluntly. Prevent a disaster and your reward is a crowd telling you there was never a disaster.
A second lesson gets less attention. Plenty of Y2K fixes were patches on patches. Where a system couldn’t be rebuilt to hold four-digit years, programmers taught it to guess. In one common scheme, 00 through 50 means the 2000s and 51 through 99 means the 1900s. Some of that code is still running, and its guess is good through 2050 and no further.
What’s the same
The 2038 bug is the same species. Unix, and nearly everything descended from it, counts time as the number of seconds since January 1, 1970. For decades that count was kept in a 32-bit signed number, which tops out at 2,147,483,647. The count reaches that figure in January 2038, rolls over to a negative number, and lands in 1901.
Like Y2K, it began as a reasonable shortcut, and its deadline has been public for decades and can’t be negotiated.
The trouble also starts before the date, same as last time. Any program that looks far enough ahead hits the wall early. Back in 2006, a piece of web server software called AOLserver started failing because of a timeout set a billion seconds into the future. A thirty-year mortgage written today matures in 2056.
The age of the chip doesn’t settle anything. What matters is how each piece of software stores the time, so an old 32-bit machine can be safe and a new 64-bit one can be exposed.
What’s different
Most of it favors the bug.
Y2K had its embedded chips too, in elevators, pipelines, and factory controllers. But most of the problem lived in systems with an owner and a budget, and somebody whose job depended on keeping them running. A change freeze only works on machines you know about.
Since then we’ve put a computer in nearly everything: cars, routers, smart TVs, industrial controllers. They run for decades, and plenty of them were never built to be updated. Nobody has a complete inventory.
There are far more of them, too. Trey Darley and Pedro Umbelino, two security researchers who started the Epochalypse Project to drag this into the open, say the number of systems needing a check is orders of magnitude beyond what Y2K faced. Umbelino has already found hundreds of thousands of internet-facing devices that may be affected.
The repair is uglier. Y2K was largely about how a year was written down. This one is about the size of a number that file formats and databases all assume. Change it in one place and something that depended on the old size breaks somewhere else.
Nobody has to wait for 2038, either. Darley and Umbelino’s real point is that an attacker can move a device’s clock forward today, by faking a GPS signal or a time server, and set the bug off on demand. “We are vulnerable today,” Umbelino says. One maker of fuel tank gauges has already confirmed its devices are vulnerable, and the patches went out under a federal security advisory.
Then there’s the calendar. Y2K had a midnight and a champagne countdown. This one arrives on a date nobody can name without looking it up. On the East Coast it lands at 10:14 on a Monday night, which is at least a civilized hour for a catastrophe.
To be fair to the engineers, the big targets are in better shape. Your phone and your laptop already count time in 64 bits, which is good for about 292 billion years. Linux laid the groundwork for older 32-bit hardware in 2020, though the programs running on top still have to be rebuilt to use it. Modern servers are better off than most, but a new processor doesn’t vouch for every database field and file format riding on it. The worry is everything nobody remembers owning.
A bad clock is often just a nuisance, too. A television that forgets the year makes for an irritating evening. A controller that uses the date to decide when to renew a security certificate or run a safety check is another matter. Nobody can say yet which machines are which, or what leans on them.
What the people who’d know are predicting
Nobody serious disputes that the bug is real, or that most systems will get through it. The argument is over the machines nobody has accounted for.
The optimists, Oren among them, expect ordinary replacement and years of preparation to take care of most of it. If we get through, he says, preparation will be the reason.
The security researchers are looking at what ordinary replacement won’t reach. Their forecast is that some systems won’t be fixed in time, so the job is triage: find the critical ones, repair what can be repaired, and plan around the rest. Umbelino thinks satellites, power plants, and water systems could be on that list, though he labels that a belief. In industrial gear a wrong timestamp can spread into crashed systems, corrupted records, and safety checks that quit checking, though that’s a “can,” not a “will.”
The fix itself is no mystery. Find the equipment, find out how it keeps time, test it past the date, and replace what can’t be repaired. That’s what we did in 1999.
The mystery is who does it. In 1999 my company could bring back retired COBOL programmers, because the people who understood the old code were still around to hire. For a twenty-year-old controller whose manufacturer has folded and whose installer retired long ago, there may be nobody to call.
And the AI?
Here I’m reasoning more than reporting, so weigh it that way.
We’re building machines to do our thinking, and they depend on the very equipment this bug threatens. They may also be the best help we have for fixing it.
The models themselves should sail through on new 64-bit hardware. The buildings they run in are not. A data center stays alive on power and cooling equipment, and the controllers for that equipment belong to the industrial class the researchers are worried about. You end up with a very expensive brain on a very ordinary life-support machine.
AI also eats data, and a bad clock makes bad data. A system that stamps its records 1901 can feed nonsense to whatever learns from them, and how far the damage travels depends on how that pipeline is built.
The hopeful part is the labor. At my plant in 1999, the fix was people reading code line by line. This time the dull work of sorting through millions of devices and their firmware could go to machines, and at least one mainframe architect is already arguing that it has to, because the count is past what people with spreadsheets can cover.
I wouldn’t lean on that too hard. A machine trained on decades of human code inherits decades of human mistakes. As recently as 2022, a programmer caught a snippet still spreading the 2038 bug into new software. Nothing guarantees the AI won’t write the bug it was hired to find.
Eleven years
We have a little over eleven years. If the work gets done, January 19, 2038 will be the dullest Tuesday of the century, and by Wednesday somebody will be explaining that the whole thing was a hoax.
Good. Let them.
Leave a Reply