News for hackers. Stuff that matters.
Re:Timezone Bullshit by seszett on Wednesday February 10, 2021 @06:47AM (#26088021)
You cannot convert a time string in the future to a timestamp. You must keep it as a string with timezone information until the time actually comes.
Re:Timezone Bullshit by netsharc on Wednesday February 10, 2021 @04:22PM (#26095007)
IMO depending on the use case, just the TZ info won't save you. Say I arrange a meeting for 4pm local time (where summer daylight savings time will be active) for July 2022.. and then the city I want to meet in gets invaded by a foreign army and changes its timezone. And cancels summer time. What time is my meeting now?

I guess it needs to be a 4-dimensional coordinate, where 1 axis can slide around...

Re:Timezone Bullshit by seszett on Thursday February 11, 2021 @09:24AM (#26101761)
You should store TZ info in the "Europe/Brussels" form, rather than "CET" or "UTC-1" which aren't easy to use anyway.

If a foreign army invades Belgium and changes its timezone, Europe/Brussels will get updated.