|
|
|
|
|
by Schiendelman
1956 days ago
|
|
As far as I’m aware, GMT has never changed since the advent of computing. Yes, you do need to store the location of the scheduler so that you can adjust everything as appropriate, and of course you need to schedule the time the event was created. But you still only store those times in GMT. By the way, what I’m describing is the way every AWS system does it. Edit : Oddly, I can’t reply to your reply to this, but I already addressed the case you were talking about in this comment. |
|
If I schedule an event in 1 year at 08:00 in MyCityTimezone and you store that the event occurs at 13:00 GMT then 3 months later MyCity decides that they aren't doing Daylight Savings Anymore your GMT time is now wrong. My event must still occur at 08:00 which is now 14:00 (or whatever) GMT.
"Just" storing it in GMT isn't enough. You probably do want to do that but you need to store the local time as well and update GMT to match if timezones change.
This is very frequently done wrong because timezones don't change often so the "Just store GMT" mostly works. But if you are writing a high quality system you need to deal with these cases.