4 ms·
If you are writing a calandar app that has an event that occurs every morning at 0900 in New York, you need to store that at 0900 America/New_York, not at 1400
by iso1210 6y ago
If you are writing a calandar app that has an event that occurs every morning at 0900 in New York, you need to store that at 0900 America/New_York, not at 1400 GMT, or the unix time of 1400 GMT and adding 86,400 seconds.
- svieira 6y agoIf you're writing a calendar app, then you should probably store the triple of `local time`, `time zone name`, `version of time zone database used to look up time zone name` https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/ https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a... and http://www.creativedeletion.com/2015/03/19/persisting_future_datetimes.html http://www.creativedeletion.com/2015/03/19/persisting_future...