logoalt Hacker News

mgaunardyesterday at 9:55 PM1 replyview on HN

Never heard of DST? The authoritative time is constant in the local time zone, but needs to change in UTC twice a year.

This is the exact reason people store time in local time zones.

Also remember the date/time where DST switching occurs is entirely timezone-specific, and it's not necessarily the same pattern every year (as demonstrated with British Columbia).


Replies

Insimwytimtoday at 3:52 AM

DST works fine with Unix timestamps.

It's the scheduling changes that disrupt DST switch (or something else) need adjusting to. But this is usually planned in advance and everyone would (or at least should...) update their tzdata.

The amount of issues you'll have due to those (comparatively rare) changes cannot even begin to compare to the amount issues you'll have with datetime stored in timezones.