News for hackers. Stuff that matters.
Re:European Parliament requests recommendation to end biannu... by JumpCrisscross on Thursday February 08, 2018 @10:53AM (#16332928)
> why not include the timezone in the timestamp?

I don't think there is an unambiguous way to represent time zones. Time zones are a creation of law and convention. They change, and have changed, over time.

Re:European Parliament requests recommendation to end biannu... by toast0 on Thursday February 08, 2018 @11:06AM (#16333052)
Events in the past are easy: all you really need is UTC time, but if you store local time and the offset from UTC (and optionally the tzdata timezone name) that works too.

For dates in the future, you need to store local time, the timezone name, and the calculated offset for that time. When the database changes, you need to check if the offset changes, and if so, think hard about what that means. Also, some future events are more appropriately scheduled for local time wherever the person happens to be, which is tricky too.

Re:European Parliament requests recommendation to end biannu... by petre on Thursday February 08, 2018 @11:15AM (#16333154)
Yes there is. It's called ISO 8601.

https://en.m.wikipedia.org/wiki/ISO_8601

Re:European Parliament requests recommendation to end biannu... by tzahola on Thursday February 08, 2018 @11:00AM (#16332991)
There is an unambiguous way to represent time zones:

UTC±hh:mm

Re:European Parliament requests recommendation to end biannu... by BerislavLopac on Thursday February 08, 2018 @11:13AM (#16333116)
To be pedantic, that's the unambiguous way to represent the UTC offset, not timezones. Different timezones can have the same offset at some moments, but not at others.
Re:European Parliament requests recommendation to end biannu... by tzahola on Thursday February 08, 2018 @11:49AM (#16333463)
GGP probably meant including the UTC offsets in the timestamps, not timezone names like "Europe/Berlin" or whatever.
Re:European Parliament requests recommendation to end biannu... by icebraining on Thursday February 08, 2018 @02:06PM (#16334636)
Right, but the time zone might not have the same offset in the future, they're not interchangeable.