News for hackers. Stuff that matters.
Re:UTC Is Enough for Everyone, Right? by 0x0 on Tuesday May 29, 2018 @07:07PM (#17183546)
Yep, that's my conclusion too: storing timestamps for events in the past and up to present time - unix timestamp with optional tzid, and re-calculate local time formatting from scratch for display every time. Events in the future, do the opposite: store as yyyymmddhhiiss + tzid, and re-calculate utc from scratch for calculations every time. As a rule of thumb, at least.
Re:UTC Is Enough for Everyone, Right? by ithkuil on Wednesday May 30, 2018 @03:53PM (#17191158)
Interesting. And at some point the future becomes the past and you have to switch the representation and freeze it. Not trivial.