by kirkthejerk · 12y ago · 0 comments
In an embedded system, I couldn't think of a nice way to check for the start+end dates for daylight savings time, so I just hard-coded arrays with 10 years worth of dates.
I was eventually surprised to find out that (A) in 2005 the US changed the DST dates, and (B) our system actually survived longer than ten years.
The comment above that code is // god help us if this line is still being run 80 years from today.