Skip to content

fix(input-time-zone): add workaround for Factory time zone error in Chrome #10964

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

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Dec 3, 2024

Related Issue: #10895

Summary

Add workaround for https://issues.chromium.org/issues/381620359.

Note: timezone-groups was also updated with this workaround.

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 3, 2024
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Dec 3, 2024
@jcfranco jcfranco requested a review from driskull December 3, 2024 21:39
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -251,6 +251,12 @@ function getTimeZoneShortOffset(
locale: SupportedLocale,
referenceDateInMs: number = Date.now(),
): string {
// workaround for https://issues.chromium.org/issues/381620359
// see https://github.com/Esri/calcite-design-system/issues/10895 for more info
if (timeZone === "Factory") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏭

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Etc/Unknown" might be another oddity worth keeping an eye on.

image

@jcfranco jcfranco merged commit 5190748 into dev Dec 3, 2024
14 of 15 checks passed
@jcfranco jcfranco deleted the jcfranco/10895-add-factory-time-zone-workaround branch December 3, 2024 21:43
@github-actions github-actions bot added this to the 2024-12-17 - Dec Milestone milestone Dec 3, 2024
benelan pushed a commit that referenced this pull request Feb 8, 2025
… Chrome (#10964)

**Related Issue:** #10895 

## Summary

Add workaround for https://issues.chromium.org/issues/381620359.

**Note**: `timezone-groups` was [also
updated](#10961) with
this workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants