Live data from Hacker News

Ask HN: Did you encounter any leap year bugs today?

news.ycombinator.com

21–30 of 498 posts

Re: Ask HN: Did you encounter any leap year bugs today?

#21
Yes.

> During the morning on Thursday, no ICA store in Sweden could accept card payments. Instead, you had to use cash, Swish or pay via their app.

> The reason behind the problem was an internal problem in the payment systems at ICA as a result of an extra day in February, leap day.

ICA being the biggest grocery store chain in Sweden

Re: Ask HN: Did you encounter any leap year bugs today?

#22

One of the largest food store chains in Sweden had their entire card payment go down because someone forgot to handle leap years!

Wikipedia says they are "the second largest retail company in the Nordic countries[citation needed]". Pretty big company anyway and embarrassing for them. Would love to learn more about what the bug was, but I guess they will never say.

https://en.wikipedia.org/wiki/ICA_AB

Re: Ask HN: Did you encounter any leap year bugs today?

#23
Heard from a friend in China: the age calculation portion of the app to schedule a marriage certificate had a bug where they subtracted 22 (legal minimum age) from the year, which resulted in 2002-02-29 which doesn't exist. The app intends to compare this against the user's birth date. The error handling code assumes all errors are from the comparison. The app then rejected all marriage certificate appointments by complaining that the users are too young to marry legally.

Re: Ask HN: Did you encounter any leap year bugs today?

#28
post #8

Just hope the King of Sweden doesn't make another February 30. https://www.timeanddate.com/date/february-30.html

Let's just be happy that it isn't still the day after February 24 that becomes the inserted leap day. https://www.isof.se/lar-dig-mer/kunskapsbanker/lar-dig-mer-o...

Re: Ask HN: Did you encounter any leap year bugs today?

#29
post #9
post #2

Can't you just backdate some servers to confirm the fix?

That's generally risky to do nowadays because of things like TLS certificate expiration.

In a few hours you'll be able to backdate to "yesterday", with very low chances of hitting cert expiry issues (but I wouldn't be surprised if OP's issue involves components outside of their control or ability to test end-to-end)

Re: Ask HN: Did you encounter any leap year bugs today?

#30
post #22

One of the largest food store chains in Sweden had their entire card payment go down because someone forgot to handle leap years!

Wikipedia says they are "the second largest retail company in the Nordic countries[citation needed]". Pretty big company anyway and embarrassing for them. Would love to learn more about what the bug was, but I guess they will never say. https://en.wikipedia.org/wiki/ICA_AB

Is that intended as a correction? It’s a different claim, as far as I can tell, and the data I could find points to ICA in fact being the largest supermarket chain in Sweden by turnover.

https://www.esmmagazine.com/retail/top-5-supermarket-retail-...

Post reply on HN