One thing I have learned from HN is that datetime issues are hard, prolific, programming language agnostic, and not to trust myself to get the logic right. (The same applies to floats.)
My brain just doesn't get the concept I guess, I always struggle a lot whenever I need to touch anything that does anything with dates/time