Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamesjieye/tzdetect.js


https://github.com/jamesjieye/tzdetect.js

Last synced: 3 days ago
JSON representation

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 tables

Demo
----

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