Homec4science

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

Authored by epriestley <git@epriestley.com> on May 22 2016, 15:50.

Description

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

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.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T3025

Differential Revision: https://secure.phabricator.com/D15962

Details

Committed
epriestley <git@epriestley.com>May 22 2016, 18:14
Pushed
aubortJan 31 2017, 17:16
Parents
rPH5d30ea56cf5e: Add a modern `user.search` Conduit API method
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH2a00f185eb2f: When the JS "Intl" API is available, use it to guess the timezone (authored by epriestley <git@epriestley.com>).May 22 2016, 18:14