this post was submitted on 19 Nov 2026
196 points (99.5% liked)
Programmer Humor
34233 readers
1427 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I had a system that would fail if you ran it on leap days.
It was used to calibrate equipment, and would generate a calibration certificate after the procedure was completed. One field in the certificate was "calibration due date", which the program calculated by taking the current date and adding 1 to the year.
Whoever wrote the program had enough foresight to use a datetime library that recognized "Feb 29, 2021" was not a valid date, but not enough foresight to use that library's date math functions to add 365 days.
The official solution was "just hold off on calibrations until tomorrow and we'll fix that in the 2.0 calibration machine we're working on." The 2.0 machine was already years behind schedule, and I'm not sure it ever got completed after I left that company. I bet the bug still existed on Feb 29, 2024.
On a related note: Falsehoods programmers belive about time
https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b923ca