Hacker News new | ask | show | jobs
by theK 959 days ago
I love how the time zone designator chapter on Wikipedia also illustrates a common complexity pitfall.

> So the zone designation for New York (on standard time) would be "−05:00"

Except for the other half of the year where it is "-04:00". If you, by chance, pick that offset up in logic, make sure that where you apply it it is still the same half of the year! Classical off by one.