top | item 45156318

(no title)

bakje | 5 months ago

This is true when using a UTC offset as it has any potential DST already applied, so it can’t adapt to changes like that.

But if you say I have an appointment at 2026-09-07 15:00:00 in the timezone America/New_York I think that also accounts for future rule changes of that timezone.

I’m no expert on this matter but I believe that’s similar to how the new JS temporal API handles such things

discuss

order

fauigerzigerk|5 months ago

If the definition of timezone names can change, then the combination of a future datetime and a timezone name does not identify a point in time.

Also, what if I don't know yet where I will be and I want to set a reminder for a particular date and time?

cwillu|5 months ago

If I set my cellphone alarm to go off at 6am, and it goes off at 8am instead “because it's currently 6am in new york”, the alarm clock fucked up.

bloak|5 months ago

Unless New York gets split into two, Berlin-style, and the parts have different time zones.

mcny|5 months ago

Should it ring twice if you go across the border one way? Should it not ring if you go across the border the other way?

burntsushi|5 months ago

You also need to record the offset with the datetime and time zone. Otherwise you won't be able to detect changes to time zone rules.