|
|
|
|
|
by kevincox
1959 days ago
|
|
The problem is that the GMT time for a future event is unknowable. Timezones change based on the whims of governments. They change rarely, but they do change. Your calendar can store the GMT time for lookups but it will need to recalculate this if the timezone data changes. Furthermore it isn't as simple as "storing GMT" for repeating events. As the offset will be different for different occurrences. So you need to store the original timezone for the recurrence rule. (And see the above problem about the absolute time of a current local time being unknowable) |
|
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.