-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Use short timezone names in _tzset_js #21585
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
Conversation
f627c7d to
a98f6de
Compare
Without this change then timezone names will be the long form (Pacific Standard Time) rather than the short form (PST), and since TZNAME_MAX in musl is 6 (same in POSIX) the long names were getting truncated. Fixes emscripten-core#21582
|
sorry to jump in here, but on the call to:
that works properly for me with English US settings (returns "EDT"), but if I change to English UK it returns "undefined" because it's a 24-hour clock (no AM/PM in the string). |
What does Should I pass |
|
With my regional settings on English UK the call to If I change the call to |
|
I opened #21596 to fix this issue and add more testing. |
Without this change then timezone names will be the long form (Pacific
Standard Time) rather than the short form (PST), and since TZNAME_MAX
in musl is 6 (same in POSIX) the long names were getting truncated.
Fixes: #21582