▲ | reactordev 4 days ago | ||||||||||||||||||||||
Ooofff. The two difficult things in software engineering, naming, and timestamps. This hit me in the early 2000s and now everything I do is in UTC. All dates, timestamps, everything, UTC. If you want to look at a local window in time, convert the window to a utc start and end date and search. When viewing, use a js function to translate the utc date to a local one to print. The mental gymnasium of local to utc to local again… | |||||||||||||||||||||||
▲ | dotancohen 4 days ago | parent | next [-] | ||||||||||||||||||||||
And off-by-one errors. The two most difficult things in software engineering: naming things, timestamps, and off-by-one errors. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | umanwizard 4 days ago | parent | prev [-] | ||||||||||||||||||||||
Some times cannot be expressed in UTC. For example: “this meeting will take place at 10 AM on July 31st, 2026, US Pacific time” cannot be expressed in UTC. You can guess what time UTC that refers to, and you’ll probably be right, but you’ll be wrong if it turns out for example that the US abolishes DST before that date. | |||||||||||||||||||||||
|