Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesjieye/tzdetect.js
https://github.com/jamesjieye/tzdetect.js
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jamesjieye/tzdetect.js
- Owner: jamesjieye
- Created: 2016-10-03T07:44:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-03T07:47:19.000Z (about 8 years ago)
- Last Synced: 2024-10-10T18:39:46.297Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tzdetect.js
===========Goals
-----* detect the user timezone, or more precisely list all IANA time zone ids that are compatible with the running javascript engine
* limit data duplication by using the Moment.js version of the Olson tablesDemo
----See http://dystroy.org/stackoverflow/timezonedetect.html
Usage
-----
var tzid = tzdetect.matches()[0]; // for example : "Europe/Paris"
Related
-------http://stackoverflow.com/questions/19420582/detect-the-id-of-the-current-user-timezone-using-moment-js