What is Nostr?
nemo /
npub1702…h8td
2024-07-15 14:11:59

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.
Author Public Key
npub1702tf5t44dhnahcakj57ugamh37d27zvnrclwkyjqzc45u8fzzqsqeh8td