{"id":15058994,"url":"https://github.com/dustin-johnson/timezonemap","last_synced_at":"2025-09-21T07:08:53.933Z","repository":{"id":48299395,"uuid":"162007360","full_name":"dustin-johnson/timezonemap","owner":"dustin-johnson","description":"Java/Kotlin library to map locations or regions to time zones","archived":false,"fork":false,"pushed_at":"2021-08-02T17:16:50.000Z","size":335,"stargazers_count":49,"open_issues_count":6,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-11T23:49:32.456Z","etag":null,"topics":["android","android-library","gis","java","java-library","kotlin","kotlin-android","openstreetmap","timezone"],"latest_commit_sha":null,"homepage":"","language":"Java","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/dustin-johnson.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":"2018-12-16T14:08:26.000Z","updated_at":"2025-07-09T04:03:26.000Z","dependencies_parsed_at":"2022-09-18T23:31:06.616Z","dependency_job_id":null,"html_url":"https://github.com/dustin-johnson/timezonemap","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/dustin-johnson/timezonemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin-johnson%2Ftimezonemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin-johnson%2Ftimezonemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin-johnson%2Ftimezonemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin-johnson%2Ftimezonemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustin-johnson","download_url":"https://codeload.github.com/dustin-johnson/timezonemap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustin-johnson%2Ftimezonemap/sbom","scorecard":{"id":360212,"data":{"date":"2025-08-11","repo":{"name":"github.com/dustin-johnson/timezonemap","commit":"b704c4c113cddcf80cf05a52987cfd5871b2eea6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: CODE_LICENSE:0","Info: FSF or OSI recognized license: MIT License: CODE_LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-3x8x-79m2-3w2w","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-4g9r-vxhx-9pgx","Warn: Project is vulnerable to: GHSA-7hfm-57qf-j43q","Warn: Project is vulnerable to: GHSA-crv7-7245-f45f","Warn: Project is vulnerable to: GHSA-mc84-pj99-q6hh","Warn: Project is vulnerable to: GHSA-xqfj-vm6h-2x34","Warn: Project is vulnerable to: GHSA-2qp4-g3q3-f92w"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T10:39:08.566Z","repository_id":48299395,"created_at":"2025-08-18T10:39:08.566Z","updated_at":"2025-08-18T10:39:08.566Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276205899,"owners_count":25602951,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","android-library","gis","java","java-library","kotlin","kotlin-android","openstreetmap","timezone"],"created_at":"2024-09-24T22:35:09.575Z","updated_at":"2025-09-21T07:08:53.916Z","avatar_url":"https://github.com/dustin-johnson.png","language":"Java","funding_links":[],"categories":["地理空间"],"sub_categories":["文件同步"],"readme":"# Time Zone Map\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/us.dustinj.timezonemap/timezonemap/badge.svg)](https://maven-badges.herokuapp.com/maven-central/us.dustinj.timezonemap/timezonemap)\n[![Build Status](https://travis-ci.com/dustin-johnson/timezonemap.svg?branch=master)](https://travis-ci.com/dustin-johnson/timezonemap)\n[![Code Coverage](https://img.shields.io/codecov/c/github/dustin-johnson/timezonemap/master.svg)](https://codecov.io/gh/dustin-johnson/timezonemap/branch/master)\n[![Dependencies](https://img.shields.io/librariesio/github/dustin-johnson/timezonemap.svg)](https://libraries.io/github/dustin-johnson/timezonemap)\n\nThe time zone map library provides a convenient way of determining the relevant time zone for any location on earth.\nThe map hails from [timezone-boundary-builder](https://github.com/evansiroky/timezone-boundary-builder), \nwhich is derived from [OpenStreetMap](https://www.openstreetmap.org/) data. The idea, and the overall design pattern, \ncomes from [Timeshape](https://github.com/RomanIakovlev/timeshape).\n\nThis library seeks to:\n* Present a clean and simple API.\n* Be as fast and small as possible, with minimal dependencies, lending itself well to mobile applications.\n* Expose the region covered by each time zone to enable custom logic.\n* Handle overlapping time zones deterministically.\n* Conserve memory by not loading regions that are unnecessary.\n* Avoid dependencies on Java 8's time library, for mobile as well as legacy applications.\n\n## Examples\n```java\nimport us.dustinj.timezonemap.TimeZoneMap;\n\n// Initialize of a region that spans from Germany to Bulgaria.\n// Takes some time (~1-5 seconds) to initialize, so try and initialize only once and keep it.\nTimeZoneMap map = TimeZoneMap.forRegion(43.5, 8.0, 53.00, 26.0);\n\nString berlin = map.getOverlappingTimeZone(52.518424, 13.404776).get().getZoneId(); // Returns \"Europe/Berlin\"\nString prague = map.getOverlappingTimeZone(50.074154, 14.437403).get().getZoneId(); // Returns \"Europe/Prague\"\nString budapest = map.getOverlappingTimeZone(47.49642, 19.04970).get().getZoneId(); // Returns \"Europe/Budapest\"\nString milan = map.getOverlappingTimeZone(45.466677, 9.188258).get().getZoneId();   // Returns \"Europe/Rome\"\nString adriaticSea = map.getOverlappingTimeZone(44.337, 13.8282).get().getZoneId(); // Returns \"Etc/GMT-1\"\n```\n\nIf you're on Java 8 or above, you can convert the returned time zone into a proper `java.util.TimeZone`:\n```java\njava.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(berlin);\ntimeZone.observesDaylightTime(); // Returns true\n```\n\n## Getting the library\n#### Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eus.dustinj.timezonemap\u003c/groupId\u003e\n    \u003cartifactId\u003etimezonemap\u003c/artifactId\u003e\n    \u003cversion\u003e4.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Android\nThis library has been tested down to Android SDK 19 (KitKat 4.4), which was released in 2013.\n\n```gradle\nimplementation('us.dustinj.timezonemap:timezonemap:4.5`) {\n    // Exclude standard compression library\n    exclude group: 'com.github.luben', module: 'zstd-jni'\n}\n// Import aar for native component compilation\nimplementation 'com.github.luben:zstd-jni:1.4.9-5@aar'\n```\n\n## Licenses\nThe code of the library is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n\nThe time zone data contained in library is licensed under the [Open Data Commons Open Database License (ODbL)](http://opendatacommons.org/licenses/odbl/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin-johnson%2Ftimezonemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustin-johnson%2Ftimezonemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustin-johnson%2Ftimezonemap/lists"}