{"id":18375482,"url":"https://github.com/riboseinc/tzinfo_js","last_synced_at":"2026-04-13T08:31:44.537Z","repository":{"id":49239252,"uuid":"93503524","full_name":"riboseinc/tzinfo_js","owner":"riboseinc","description":"Pure-JS TZInfo Rails Gem","archived":false,"fork":false,"pushed_at":"2023-10-17T06:00:42.000Z","size":1049,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-03-10T10:41:34.466Z","etag":null,"topics":["javascript-library","rails","timezone-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riboseinc.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-06-06T09:58:10.000Z","updated_at":"2023-03-31T06:38:14.000Z","dependencies_parsed_at":"2025-04-11T03:49:05.314Z","dependency_job_id":"12c7551e-19e8-41b4-b1fa-cf7ed035fce4","html_url":"https://github.com/riboseinc/tzinfo_js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/riboseinc/tzinfo_js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riboseinc%2Ftzinfo_js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riboseinc%2Ftzinfo_js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riboseinc%2Ftzinfo_js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riboseinc%2Ftzinfo_js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riboseinc","download_url":"https://codeload.github.com/riboseinc/tzinfo_js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riboseinc%2Ftzinfo_js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["javascript-library","rails","timezone-library"],"created_at":"2024-11-06T00:19:08.961Z","updated_at":"2026-04-13T08:31:44.513Z","avatar_url":"https://github.com/riboseinc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= tzinfo_js\n\nifdef::env-github[]\nimage:https://github.com/riboseinc/tzinfo_js/actions/workflows/Ruby.yml/badge.svg[\n  GitHub Workflow Status, link=\"https://github.com/riboseinc/tzinfo_js/actions/workflows/Ruby.yml\"]\nendif::[]\n\n== NOTE\n\nRails only supports tzinfo gem of versions ~0.3.38. 1.0+ is not\nsupported.\n\nThis gem supports both 0.3.38+ and 1.0+. The major difference is in 1.0+\ndata definitions are included in a separate gem, tzinfo-data.\n\n== Installation\n\nAdd `tzinfo_js` to your Gemfile:\n\n[source,ruby]\n----\ngem 'tzinfo_js', github: 'riboseinc/tzinfo_js'\n----\n\n== Usage with Rails\n\n`tzinfo_js` provides `.js` file per TZInfo timezone, such as\n`America/New_York.js`.\n\n\n[source,ruby]\n----\n\u003c%= javascript_include_tag \"tzinfo_js/tzinfo.js\" %\u003e\n\u003c%= javascript_include_tag \"tzinfo_js/definitions/#{tzinfo_identifier}.js\" %\u003e\n----\n\nRun `TzinfoJs::Registry.instance.zone_map` to obtain a map from all\nTZInfo zone names to their corresponding TzinfoDefinition class (with\ntheir offsets and transitions). The resulting hash also maps\n`linked_zones` to the correct zone information, so you will have\nmultiple zone names linking to the same zone definition classes.\n\n[source,ruby]\n----\nTzinfoJs::Registry.instance.zone_map\n=\u003e {\"Africa/Asmera\"=\u003e#\u003cTzinfoJs::TzinfoDefinition:0x007ffc57404150\n  @name=\"Africa/Asmara\", @offsets=[[9332, \"LMT\"], [9332, \"AMT\"], [9320,\n    \"ADMT\"], [10800, \"EAT\"]], @sorted_transitions=\"14424380.351944445 1\n      39366.0 2 -13015698.316666666 3\"\u003e, \"Africa/Juba\"...}\n----\n\n== Updating timezone definitions\n\nSimply run from this gem's path:\n\n----\nrake tzinfo_js:generate\n----\n\n== Requirements\n\n`tzinfo_js` requires the `tzinfo` gem and Rails 3.2 or later.\n\n\n== Running Tests\n\nTODO\n\n== License\n\nThe gem is available as open source under the terms of the\nhttp://opensource.org/licenses/MIT[MIT License].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friboseinc%2Ftzinfo_js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friboseinc%2Ftzinfo_js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friboseinc%2Ftzinfo_js/lists"}