mattjohnsonpint / TimeZoneConverter

Lightweight libraries to convert between IANA, Windows, Rails, and POSIX time zones.
Other
832 stars 81 forks source link

Kazakhstan switched to a single time zone #149

Open byte916 opened 4 months ago

byte916 commented 4 months ago

Kazakhstan switched to a single time zone, UTC+05:00, on March 1, 2024 https://en.m.wikipedia.org/wiki/Time_in_Kazakhstan

mattjohnsonpint commented 4 months ago

How does that affect this library?

byte916 commented 4 months ago

How does that affect this library?

As far as I understand, this library uses IANA tz database. Moreover, the old 2022c database is used. Also, as far as I know, Microsoft has not yet released an update with a new time zone. Therefore, there is nothing that can be done right now, but in the future, when Microsoft releases an update, you should update the iana database so that one zone is correctly converted to another.

mattjohnsonpint commented 4 months ago

Actually, this library primarily uses the mappings between the identifiers of the Windows time zones and the names of the IANA time zones. If the offsets or dst transitions underlying a given zone change, that doesn't necessarily require a change to the mapping - as long as the data is consistent on both sides (more or less).

If there's a new zone introduced, or if the existing IANA zones are mapped to a different Windows zone (via CLDR), then an update would be required.

byte916 commented 4 months ago

Most likely, Microsoft will add a new time zone for Kazakhstan (https://techcommunity.microsoft.com/t5/daylight-saving-time-time-zone/interim-guidance-for-kazakhstan-time-zone-changes-2024/ba-p/4048963)

mattjohnsonpint commented 4 months ago

Ok. I'll keep this open until Microsoft releases the new time zone. Thanks.

gjdownes commented 1 month ago

Hi there, I believe this update is now live (apologies, it's unclear to me if a new zone was introduced or if there was a consolidation). https://techcommunity.microsoft.com/t5/daylight-saving-time-time-zone/kazakhstan-2024-time-zone-update-now-available/ba-p/4100664