Created
April 10, 2018 22:35
-
-
Save chances/b32527720c43aabae7d2458fdecdab72 to your computer and use it in GitHub Desktop.
JS Intl.DateTimeFormat resolved timezone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intl.DateTimeFormat().resolvedOptions().timeZone | |
// 'America/Los_Angeles' | |
Intl.DateTimeFormat('en-US', {timeZone: 'UTC'}).resolvedOptions().timeZone | |
// 'Etc/UTC' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment