Time zones are always the bug
Another evening lost to a timestamp that was off by exactly three hours.
I rewrote the function twice before realising the original version was fine and the problem was in the input.
If a script needs a manual, it probably needs to be simpler first.
The bug turned out to be a single character in a configuration file, which is how most of my long evenings end.
Small tools are pleasant because you can hold the entire program in your head at once.
In the end the fix was three lines, and the commit message was longer than the change.
The documentation was correct; I simply read the version for a release three years older than mine.