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
Show all comments
Showing thread 6 of 159
Whenever February 29 wasn’t present as an option, the frontend was at fault, so I could set the right value in the inspector as a workaround.
Other times February 29 was present as an option, only to be saved as February 28. Never March 1, which I’d say would be more coherent.
depends on what you're trying to organize by. maybe 'birth month' is an important signifier.
* I was N years old on February 28th this year
* I will be N+1 years old on March 1st this year
Therefore:
* I was N-1 years old on February 28th last year
* I was N years old on March 1st last year
Perhaps the month is February and the non-leap year date is March 1st...
edit: also happy birthday!
Continue this thread — 1 reply
Which makes sense since then it is "after" your birthday.
Which is more important, the past or the future?
You're not alone!