3 ms·
Offsets can change. Turkey switched from GMT+2 with DTS to GMT+3 without DTS a couple of years ago. If you were to store +2, you wouldn't be able to reconstruct
by abdusco 5y ago
Offsets can change. Turkey switched from GMT+2 with DTS to GMT+3 without DTS a couple of years ago. If you were to store +2, you wouldn't be able to reconstruct the current date from it, while having Europe/Istanbul would give you either +2 or +3 depending on the revision.
So a better option is to store UTC + timezone + revision (i.e. timezone as it was in 2014 to figure out the offset later)
- knorker 5y ago> Offsets can change. Indeed. So when the Turkey/France meeting moves, what then? But I get you. You want the point in time to stay "the same" in the local "common sense" time, whereas I was thinking international cooperation in which case anchoring it in Turkey could hurt more than help. > So a better option is to store UTC + timezone + revision Well that means that you've decided on an exact number of seconds from now, no matter how timezones change. So what's the point? Why not just have UTC+offset, then? timezone+revision is exactly equal to offset.