3 ms·
I wrote this somewhat thorough post about time, date, events, and timezones in response to a stackoverflow question once: http://stackoverflow.com/questions/253
by bluesmoon 10y ago
I wrote this somewhat thorough post about time, date, events, and timezones in response to a stackoverflow question once: http://stackoverflow.com/questions/2532729/daylight-saving-time-and-time-zone-best-practices/3269325#3269325 http://stackoverflow.com/questions/2532729/daylight-saving-t...
It covers repeating events, historical accuracy, ranges, events that are fixed in localtime but variable in UTC, and more.
TL;DR: Always store UTC datetime + TimeZone, sometimes you need to store a little more information.
- rolux 10y agoSadly, there's a lot more to it: http://www.quirksmode.org/blog/archives/2009/04/making_time_saf.html http://www.quirksmode.org/blog/archives/2009/04/making_time_...