Ask HN: Did you encounter any leap year bugs today?
524 pointsAfter a frantic scramble this morning, our billing team has finished patching a bug which erroneously was charging our monthly subscribers for an extra day.
All test suites are passing now, and SRE has scheduled a postmortem after the QA confirms the fix in 2028.
Comments (481) 159 threads
Earlier commentsUnfortunately it was a lot more subtle than getting March 1-st instead of Feb 29-th. Each date was calculated with a dynamic offset depending on the month and year. So during leap years, everything was fine until the 14-th of May at 01:00 UTC. The second the clock hit, 14-th of May at 01:01, all hell broke loose incrementally as time want on until the end of each year. The weird string representation for Nov 1-st was being calculated as January 3-rd for instance. But as soon as the clock hit January 1-st, everything went back to normal. It took 6 people 2 days to figure it out. As you might expect, this was not mentioned anywhere in the documentation.
I'm not sure what has happened ever since, but if the system made it into production and you didn't get stuck in an airport... You're welcome lol
Some other models (not F91W) does track year.
Continue this thread — 1 reply
>Calendar system: Auto-calendar set at 28 days for February [0]
[0] https://support.casio.com/en/manual/009/qw593.pdf
https://codeofmatt.com/list-of-2024-leap-day-bugs/
[1] https://pandaily.com/hesai-technology-addresses-lidar-produc...
Telling base where, and when, you were
Continue this thread — 5 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.