crystal-lang / crystal

The Crystal Programming Language

Home Page:https://crystal-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time zones read from Windows Registry lack historic DST rules

straight-shoota opened this issue · comments

Windows has time zone information available in the registry. We reading that data, but only the currently active rules and extrapolate them to historic and future dates. This is error prone because DST rules tend to change over time.

Historical data is available in the Dynamic DST key under a time zone entry.

https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/ns-timezoneapi-dynamic_time_zone_information

Duplicate of #13518?