|
|
|
|
|
by Retric
3387 days ago
|
|
It is reasonable to represent reoccurring events outside of UTC. If your user wants an alarm is at 7:30 AM MTWTF then you can store it just like that. If they travel to another time zone and they still get a 7:30 AM wake up call that's generally desired behavior. And yes there are a huge number of edge cases. It's specific times you want UTC, if I setup a meeting then I want someone in another time zone to call in at the same time. |
|
Your example may work fine on a server that you control, but let's say your use case is a phone alarm program. You can't guarantee that your application will know when it's 7:30AM in the local time, but you can guarantee what the time is in UTC and not need network or the device's help to do it.
So now the time format you store depends on the architecture of your platform? What if you have to send this data between platforms now? Am I going to have to convert back and forth for each message? No thanks. I'll just store everything as UTC and stay sane.