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
F15906209: D15962.id38431.diff
Sun, Jun 1, 1:37 PM
F15906207: D15962.id38430.diff
Sun, Jun 1, 1:37 PM
F15906202: D15962.id.diff
Sun, Jun 1, 1:37 PM
F15906200: D15962.diff
Sun, Jun 1, 1:36 PM
Unknown Object (File)
Sat, May 31, 8:04 AM
Unknown Object (File)
Sat, May 31, 12:51 AM
Unknown Object (File)
Tue, May 27, 11:10 AM
Unknown Object (File)
Tue, May 27, 9:04 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