{"id":20888008,"url":"https://github.com/canop/tzdetect.js","last_synced_at":"2025-10-03T23:08:29.168Z","repository":{"id":11251295,"uuid":"13650389","full_name":"Canop/tzdetect.js","owner":"Canop","description":"A JavaScript library to detect the timezone using Moment.js","archived":false,"fork":false,"pushed_at":"2017-01-06T11:57:48.000Z","size":6,"stargazers_count":31,"open_issues_count":2,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-01T10:35:53.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Canop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-17T13:54:23.000Z","updated_at":"2019-02-27T14:01:24.000Z","dependencies_parsed_at":"2022-07-21T16:02:30.142Z","dependency_job_id":null,"html_url":"https://github.com/Canop/tzdetect.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Ftzdetect.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Ftzdetect.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Ftzdetect.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Ftzdetect.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Canop","download_url":"https://codeload.github.com/Canop/tzdetect.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816655,"owners_count":21968861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T08:23:46.364Z","updated_at":"2025-10-03T23:08:24.129Z","avatar_url":"https://github.com/Canop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tzdetect.js\n===========\n\nNotice\n------\n\nThere's now a [guess](http://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/) API in moment.js, making my library largely useless.\n\nGoals\n-----\n\n* detect the user timezone, or more precisely list all IANA time zone ids that are compatible with the running javascript engine\n* limit data duplication by using the Moment.js version of the Olson tables\n\n[Related StackOverflow Question](http://stackoverflow.com/questions/19420582/detect-the-id-of-the-current-user-timezone-using-moment-js)\n\nDemo\n----\n\nSee http://dystroy.org/stackoverflow/timezonedetect.html\n\nUsage\n-----\n\n\t\u003cscript src=\"moment-with-langs.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript src=\"moment-timezone-with-data.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript src=\"tzdetect.js\"\u003e\u003c/script\u003e\n\t\u003cscript\u003e\n\t\tvar tzid = tzdetect.matches()[0]; // for example : \"Europe/Paris\"\n\t\u003c/script\u003e\n\nLicense\n-------\n\nThe [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Ftzdetect.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanop%2Ftzdetect.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Ftzdetect.js/lists"}