Page MenuHomePhabricator

When the JS "Intl" API is available, use it to guess the timezone
ClosedPublic

Authored by epriestley on May 22 2016, 1:57 PM.
Tags
None
Referenced Files
F19068782: D15962.id38430.diff
Sun, Nov 30, 12:38 PM
F18899899: D15962.id38430.diff
Nov 7 2025, 8:19 PM
F18868474: D15962.id.diff
Nov 4 2025, 6:49 AM
F18859618: D15962.diff
Nov 2 2025, 4:02 AM
F18835142: D15962.id38430.diff
Oct 26 2025, 1:33 PM
F18764907: D15962.diff
Oct 7 2025, 8:31 AM
F18672586: D15962.id.diff
Sep 25 2025, 7:50 AM
F18111232: D15962.id.diff
Aug 12 2025, 9:23 AM
Subscribers
None

Details

Summary

Ref T3025. Chrome gives us an easily-accessible, much better guess at which timezone the user is in.

Firefox also exposes "Intl" but this doesn't seem to be a reliable method to read the timezone.

Test Plan

In Chrome, swapped my system date/time between zones, clicked the "reconcile" popup, got the dropdown prefilled accurately.

In Safari (no Intl API) got the normal flow with no default selected.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable