Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map IANA time zone identifiers to Windows time zones #13517

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented May 29, 2023

Resolves #13166.

Since on Windows we already use hardcoded short time zone names from tzdata based on windowsZones.xml, we also include the IANA to Windows mappings themselves, all without linking against libicu at runtime.

This does not support historical time zone transitions yet. That must be handled separately by switching to LibC::DYNAMIC_TIME_ZONE_INFORMATION (see #13518).

@HertzDevil HertzDevil added kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:time labels May 29, 2023
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota added this to the 1.9.0 milestone Jun 14, 2023
@straight-shoota straight-shoota merged commit 1a852f1 into crystal-lang:master Jun 15, 2023
@HertzDevil HertzDevil deleted the feature/windows-iaza-time-zone branch June 15, 2023 12:22
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
)

Co-authored-by: Johannes Müller <straightshoota@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:time
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Time::Location#load with IANA TZ string
2 participants