Leap year bug- Blog Banner

The Leap Year Bug That Stopped Fuel Pumps in New Zealand: A Small Date Problem With a Big Software Lesson

Imagine driving into a fuel station, inserting your card, selecting the pump and the payment terminal doesn’t work.

On February 29, 2024, self-service fuel pumps at multiple fuel brands in New Zealand experienced payment failures because of a software problem associated with the leap-year date. Reuters reported that several fuel providers, including Allied Fuel, Gull, Z Energy and BP, experienced disruptions involving payment software supplied by Invenco.

The incident highlights a simple but important QA lesson:

–If a scenario is rare, that doesn’t mean it is unimportant.

What Happened?

Several self-service fuel stations were unable to process card payments at the pump. The issue affected outdoor payment terminals, particularly at unattended or automated sites. Some staffed locations could continue using alternative payment methods.

Invenco identified the problem as a leap-year-related software glitch. Z Energy also confirmed that a third-party payment-system issue was affecting pay-at-pump transactions. The disruption lasted for hours, turning an apparently small edge case into a real business continuity problem.

How Can February 29 Break Software?

February 29 is predictable, yet software can still fail when it encounters it.

A simplified leap-year rule is:

  • A year divisible by 4 is generally a leap year.
  • A century year must also be divisible by 400.

For example:

  • 2024 → leap year
  • 2028 → leap year
  • 2100 → not a leap year
  • 2000 → leap year

The bigger challenge is that dates rarely exist in isolation. They can affect payment authorization, transaction expiry, authentication tokens, billing, database records, APIs, scheduled jobs, reporting, inventory, fraud detection, certificates and monitoring.

So QA teams shouldn’t test only whether a date is displayed correctly. They need to test what that date does to the complete business workflow.

The Real QA Lesson: Edge Cases Matter

A typical payment test might cover:

  1. Insert card.
  2. Authenticate.
  3. Select fuel.
  4. Authorize payment.
  5. Dispense fuel.
  6. Complete the transaction.
  7. Generate a receipt.

But what happens on:

  • February 29?
  • December 31?
  • January 1?
  • Month-end?
  • Year-end?
  • A timezone boundary?
  • A daylight-saving transition?

These are edge cases and edge cases expose hidden assumptions. 

A strong QA strategy deliberately tests uncommon but predictable scenarios. See how clan.AP Technologies approaches QA and software testing for a broader quality-engineering approach. 

What Should Date & Time Testing Cover?

1. Leap Years

Test February 28, February 29 and March 1 across leap and non-leap years.

2. Month-End

Test transitions such as:

  • January 31 → February 1
  • February 28/29 → March 1
  • April 30 → May 1
  • December 31 → January 1

These transitions are especially important for billing, subscriptions, payroll and financial systems.

3. Year-End

Verify transaction dates, reports, scheduled jobs, token expiry and database timestamps when the year changes.

4. Time Zones

A global system can behave differently when components operate in different time zones. A date transition may occur at different times across services.

5. Daylight Saving Time

Where applicable, test both skipped and repeated hours. Systems that assume every day contains exactly 24 hours can encounter unexpected behavior.

Why Automation Testing Matters

You shouldn’t wait four years to discover whether February 29 works.

Automated testing allows QA teams to simulate dates and repeat the same workflow across:

  • Leap and non-leap years
  • Month- and year-end
  • Different time zones
  • Different API responses
  • Different transaction states

A rare scenario can therefore become a repeatable regression test.

The goal isn’t simply to have thousands of automated tests. The goal is to automate the right risks.

Regression Testing and Third-Party Dependencies

A system may work correctly for years and then fail after a change to payment logic, APIs, authentication, databases, operating systems or third-party integrations.

This is particularly important for systems that combine:

Physical device + payment terminal + software + APIs + network + payment processor + backend systems + monitoring.

A failure anywhere in that chain can affect the customer experience.

Observability: Knowing Why Something Failed

Finding a failure is only the beginning. Teams also need to understand why it failed.

Useful observability connects failures with:

  • Logs
  • Metrics
  • Traces
  • API requests
  • Service dependencies
  • Device information
  • Error codes
  • Deployment versions

Instead of simply seeing:

Payment failed

Teams should ideally be able to trace:

Payment failed → terminal request → API call → service response → validation error → date-handling condition OpenTelemetry’s official documentation describes OpenTelemetry as a framework for generating, collecting and exporting telemetry such as traces, metrics and logs.

Key Takeaways

Rare scenarios can create major production failures.

  • Treat date and time as a dedicated testing area.
  • Automate predictable edge cases instead of waiting for real-world events.
  • Include third-party integrations in regression testing.
  • Use logs and traces to understand failures faster.
  • Turn production incidents into permanent regression tests.
  • Test beyond the happy path especially where business-critical workflows are involved.

How QA Teams Can Prevent the Next February 29 Bug

A practical checklist:

Date & Time: Test leap years, month/year boundaries, time zones and DST where applicable.

Automation: Parameterize date/time inputs, automate edge cases and run regression tests in CI/CD.

API Testing: Validate date formats, timezone handling, expiry, retries and third-party failure responses.

Observability: Capture structured logs, distributed traces and useful error context.

Release Management: Test critical workflows after infrastructure, dependency or software changes.

FAQs

Why did February 29 cause the fuel-pump failures?

The incident was associated with a leap-year-related software problem in payment systems used by affected fuel stations.

Why are edge cases important in software testing?

Edge cases reveal assumptions that may not appear during normal testing. Even rare conditions can affect critical workflows at scale.

How can automation help with date-related bugs?

Automation can simulate specific dates and repeat workflows across leap years, month-end, year-end, time zones and other boundary conditions.

Should date testing include APIs?

Yes. Date formats, timezone handling, expiry logic and third-party API responses can all influence business workflows.

How does observability help QA?

Logs, metrics and traces provide evidence about what happened during a failure, helping teams connect a failed test or transaction to the underlying service or validation issue.

Conclusion

The New Zealand fuel-pump outage wasn’t caused by an exotic problem. It was associated with something as ordinary and predictable as February 29.

That’s why the incident matters.

Software quality isn’t just about whether the happy path works. It’s about what happens when the system encounters unusual but predictable conditions.

At clan.AP Technologies, our QA approach focuses on end-to-end automation, API testing, CI/CD integration and observability to build reliable and repeatable quality processes.

The goal shouldn’t be to ask after production fails:

“How did we miss this?”

The goal should be to have already tested it.

Ready to make your software more reliable?

If your application depends on payments, APIs, third-party integrations, SaaS workflows or complex business logic, your QA strategy needs to go beyond basic functional testing.

Contact the clan.AP team to discuss your software testing requirements. 

Leave a Comment

Your email address will not be published. Required fields are marked *