nemo on Nostr: Curious timezone handling bug I'm having to workaround: Event says ...
Curious timezone handling bug I'm having to workaround:
Event says YYYY-MM-DDT17:30:00+02:00 (CET, 1730)
When it actually happens at 19:30+5:30 (IST)
Converting CET->IST gets us to 2100IST, so the timestamp is wrong.
The usual bugs happen when you take the local time, and slap the incorrect timezone (UTC/CET), but that would get us `1930+02:00`.
So they tried to do _some timezone math_ by taking the local time (1930) subtracting the CET offset (1730), and marking it with +02:00 for CET.
Event says YYYY-MM-DDT17:30:00+02:00 (CET, 1730)
When it actually happens at 19:30+5:30 (IST)
Converting CET->IST gets us to 2100IST, so the timestamp is wrong.
The usual bugs happen when you take the local time, and slap the incorrect timezone (UTC/CET), but that would get us `1930+02:00`.
So they tried to do _some timezone math_ by taking the local time (1930) subtracting the CET offset (1730), and marking it with +02:00 for CET.