Consider jsTimeZoneDetect
See original GitHub issueThe existing mechanism only bases its guess on the current offset (js: new Date().getTimezoneOffset()
). You may want to consider using jsTimeZoneDetect instead.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
pellepim/jstimezonedetect - GitHub
This script gives you the zone info key representing your device's time zone setting. The return value is an IANA zone info key...
Read more >Getting different timezone IE11 and Chrome browser for ...
From the jsTimeZoneDetect docs: Limitations This script does not do geo-location, nor does it care very much about historical time zones.
Read more >Timezone Detect | Drupal.org
Timezone Detect is a lightweight module that leverages the jsTimezoneDetect library (included with the module) for automatic detection and ...
Read more >jstimezonedetect - npm Package Health Analysis - Snyk
This script gives you the zone info key representing your device's time zone setting. The return value is an IANA zone info key...
Read more >Auto-Detecting a User's Time Zone in Rails
We include the jsTimezoneDetect library via Rails Assets: ... I think that should be enough information to get you started.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why not
Intl.DateTimeFormat().resolvedOptions().timeZone
?This is how moment-timezone “detects” a TZ. https://github.com/moment/moment-timezone/blob/d7f687ea598b205806decd83b78d3ea9ad11a569/moment-timezone.js#L356
If that fails, fall back to the current method for getting a TZ
@bashu @adamcharnock As requested I created a PR for this: #63 It will prefer the timezone and falls back to offset. Let me know if there are more improvements needed.