News for hackers. Stuff that matters.
Re:How to save datetimes for future events by mark-r on Monday March 23, 2015 @12:31PM (#9251741)
If you stored it as your local time, it would be wrong. If you stored it as Chile's local time, it would be correct. The trick is to simply record the appropriate time zone along with the timestamp.
Re:How to save datetimes for future events by kevin_thibedeau on Monday March 23, 2015 @12:54PM (#9251875)
There is still the problem of handling the effects of DST on repeating events. You have to know the base UTC offset and any additional seasonal offset for the local zone. Then it becomes an issue if you travel to a different locality that doesn't observe DST.
Re:How to save datetimes for future events by kbenson on Monday March 23, 2015 @12:37PM (#9251762)
Absolutely correct. I was thinking that, even if we words said something else. :/ I've updated the last paragraph to reflect that.