{"id":16527670,"url":"https://github.com/benoitzugmeyer/date-timezone","last_synced_at":"2025-10-08T23:54:38.567Z","repository":{"id":66068137,"uuid":"49869607","full_name":"BenoitZugmeyer/date-timezone","owner":"BenoitZugmeyer","description":"Change the local timezone by patching the native Date objects.","archived":false,"fork":false,"pushed_at":"2016-05-23T11:36:47.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T16:08:33.176Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenoitZugmeyer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2016-01-18T10:29:26.000Z","updated_at":"2016-01-18T11:37:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7c69cf5-1c85-407c-b850-a3cd97c5242a","html_url":"https://github.com/BenoitZugmeyer/date-timezone","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"717a12c7b7272aa1abb654e13fb6c200595fb8d4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BenoitZugmeyer/date-timezone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fdate-timezone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fdate-timezone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fdate-timezone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fdate-timezone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenoitZugmeyer","download_url":"https://codeload.github.com/BenoitZugmeyer/date-timezone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fdate-timezone/sbom","scorecard":{"id":21251,"data":{"date":"2025-08-11","repo":{"name":"github.com/BenoitZugmeyer/date-timezone","commit":"717a12c7b7272aa1abb654e13fb6c200595fb8d4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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: LICENSE:0","Info: FSF or OSI recognized license: ISC License: 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"}}]},"last_synced_at":"2025-08-14T16:50:36.569Z","repository_id":66068137,"created_at":"2025-08-14T16:50:36.569Z","updated_at":"2025-08-14T16:50:36.569Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000708,"owners_count":26082862,"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-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-10-11T17:36:25.171Z","updated_at":"2025-10-08T23:54:38.543Z","avatar_url":"https://github.com/BenoitZugmeyer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\ndate-timezone\n=============\n\nTimezone aware :code:`Date` objects.\n\nInstall\n=======\n\nNode\n----\n\n::\n\n    npm install date-timezone\n\nBrowser\n-------\n\n::\n\n    git clone https://github.com/BenoitZugmeyer/date-timezone\n    cd date-timezone\n    npm install\n    npm run dist\n\nThen include either ``dist/date-timezone.js`` or ``dist/date-timezone-with-moment.js`` in your\nproject. If you include the first one, make sure you also include moment-timezone_.\n\nYou can always use ``webpack`` or ``browserify`` to include this in your project.\n\nAPI\n===\n\n:code:`new dateTimezone.DateTimezone(...)`\n    Construct a new date with the current global timezone. This constructor and the\n    returned object have the same API as `native Date objects`_.\n\n:code:`dateTimezone.setGlobalTimezone(timezoneName)`\n    Set the global timezone to use when building dates with :code:`DateTimezone`. By\n    default, the global timezone is the current runtime timezone. It supports any\n    timezone name supported by moment-timezone.\n\n    Call without argument to reset the global timezone to the runtime timezone.\n\n:code:`dateTimezone.patch()`\n    Replace the native :code:`Date` constructor with the :code:`DateTimezone` constructor.\n    All new dates will respect the global timezone.\n\n:code:`dateTimezone.unpatch()`\n    Restore the native :code:`Date` constructor if it has previously been replaced with\n    :code:`dateTimezone.patch()`.\n\n:code:`dateTimezone.getNativeDate()`\n    Return the native :code:`Date` constructor, useful when :code:`patch()` has been\n    called.\n\nUsage example\n=============\n\n.. code:: javascript\n\n    dateTimezone.setGlobalTimezone(\"America/New_York\");\n\n    new Date(2016, 1, 1).toString();\n    // 'Mon Feb 01 2016 00:00:00 GMT+0100 (CET)' or whatever local timezone you're on.\n\n    new dateTimezone.DateTimezone(2016, 1, 1).toString();\n    // 'Fri Jan 01 2016 00:00:00 GMT-0500 (EST)'\n\n    dateTimezone.patch();\n\n    new Date(2016, 1, 1).toString();\n    // 'Fri Jan 01 2016 00:00:00 GMT-0500 (EST)'\n\n.. _moment-timezone: http://momentjs.com/timezone/\n.. _native Date objects: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fdate-timezone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitzugmeyer%2Fdate-timezone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fdate-timezone/lists"}