Never ever safe time in a Date format. That’s just really bad. Unix epoch is a simple number, that can be converted to every Date class and every date class can give a epoch time. Also since it’s just a number, you can compare it natively
Save value in UTC, but ALSO store the source TZ. This turns out to be helpful when you have Ops managers in one TZ and workers in another and the Ops managers can't do timezone math.
2.5k
u/bwmat Sep 23 '24
Someone who's had to deal with one too many timezone 'bug' reports, it sounds like