On 29 February 2024, drivers across New Zealand pulled up at self-service petrol pumps and couldn’t pay. Card terminals refused every transaction for most of the day. The software behind them had worked for years without a problem. It simply didn’t know what to do with a date that only comes around once every four years.
That’s what makes leap year bugs so awkward. They don’t announce themselves in testing or in the first months after launch. They wait, sometimes for years, for the one day that exposes them.
Why they stay hidden
Software is usually tested on ordinary days, with ordinary dates. A system can run for 1,460 days in a row without ever meeting 29 February, so a flaw in how it handles that date can survive dozens of releases, code reviews and audits.
The rule itself is also trickier than it looks. A year is a leap year if it divides by four, except century years, which only qualify if they divide by 400. That’s why 2000 had a 29 February and 2100 won’t. Code built on the simpler “every four years” assumption will keep working for decades and then fail at the turn of the century.
Where they cause damage
Leap year bugs gather wherever time and money meet. Subscriptions renew on set dates, payroll and interest depend on the number of days in a year, and licences, free trials and security certificates expire on calculated dates.
Two mistakes cause most of the trouble. The first is adding a year to 29 February and producing a date that doesn’t exist. The second is assuming every year has 365 days, which leaves the 366th day, 31 December in a leap year, with nowhere to go.
Dates are never as simple as they look
Fusion Forge Tech’s teams work across several countries and time zones, so the question “what day is it?” can have two correct answers at the same moment. Midnight in one office is mid-afternoon in another, a deadline set for Friday lands on Saturday somewhere else, and a scheduled job can run on 28 February for one user and 29 February for another. Leap years belong to the same family of problems. Each one looks small on its own, yet together they explain why experienced engineers treat every line of date logic with suspicion, and why it deserves the same scrutiny as payments or security.
Some answers are business decisions
Not every leap year question has a technical answer. If a customer subscribes on 29 February, should the subscription renew on 28 February or 1 March in normal years? If an employee joins on that date, when does their work anniversary fall? Both options are reasonable, but leaving the choice to whatever the code happens to do is how inconsistencies creep in. These decisions belong in the product specification, agreed by the business and written down.
How to catch them early
- Rely on proven date libraries. Every major platform has well-tested tools for dates and times. Hand-written calendar maths is where most leap year bugs begin.
- Test with a controlled clock. Run your tests as if it were 28 February, 29 February, 1 March and 31 December of a leap year, and include 2100 for long-lived systems.
- Check every place a date can be entered. Sign-up forms, booking calendars and data imports should all accept 29 February without complaint.
- Review anything that expires or renews. Certificates, licences, trials and subscriptions all add time to a date, which makes them the highest-risk calculations.
- Ask your suppliers. The New Zealand outage came from a shared payment system used by many fuel brands at once. If a third party handles your dates, ask how it was tested.
- Keep an eye on the risky days. Make sure someone is watching error reports on 29 February and 31 December of leap years, so problems are spotted in minutes rather than hours.
The next test is already scheduled
The next leap day falls on Tuesday, 29 February 2028. Every system running that day will sit the same quiet exam, whether anyone has prepared for it or not. The ones that pass unnoticed will belong to teams that prepared long before the calendar forced them to.



