▲ | ttiurani 4 days ago | ||||||||||||||||||||||||||||
> That's a localized date and time. Note that I'm not arguing against storing the numeric part in a consistent format, of course you should. My point is that right mow in 2025 you don't know the timezone. E.g. if you write that as the zones are now, it would be "2029-07-26T11:00:00.000Z", but if the timezones change, then when a person is looking at their calendar in 2029, they will be an hour early or late to the meeting. So it's not about presentation of the timestamp, it's that the timestamp does not match what the user meant. > In the same way, place names are localized. I beg to disagree. All spellings refer to the same phyysical place, but you can't guarantee my example timestamp description and a simple ISO time representation without a geolocation will refer to the same singular point in time. | |||||||||||||||||||||||||||||
▲ | skrebbel 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||
I agree with the gist of your comment but I think you’re using the wrong words. A time zone, as the name implies, is a zone, a place. The most common way to indicate a timezone is a continent+city combo that is both politically and geographically close, so it’s unlikely to change. Therefore, I very much know the timezone of Frankfurt, both today and in the reasonably close future, namely “Europe/Berlin”. You’re talking about the timezone offset. You’re right, don’t store that for future local dates. Store the timezone. (Or just the exact location, but then you need a way to map location -> offset if you ever want to do time math on it, and the IANA Continent/City format strikes a nice pragmatic balance there) | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | Arrowmaster 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
Ah I have the perfect solution. Let's add GPS coordinates to datetime stamps! Please put the pitchfork away it was only a joke. (Until someone actually does this because it makes a twisted sort of sense) | |||||||||||||||||||||||||||||
|