Using Temporal in Alpine requires tzdata
#2332
Ghostbird
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
To ensure Temporal works correctly with timezones for stuff like this:
Temporal.Now.zonedDateTimeISO().withTimeZone("Europe/Amsterdam").toLocaleString("nl-NL")Ensure that your Alpine container includes the
tzdatapackage. Otherwise you'll get errors like:Invalid time zone 'Europe/Amsterdam'In our containers we include
icu-data-full icu-libs tzdataand setDOTNET_SYSTEM_GLOBALIZATION_INVARIANT=falsebut I'm not 100% sure which of those are Jint requirements and which are for other stuff we do in .NET. We previously didn't usetzdatabut Temporal in Jint required us to add it.All reactions