Gathering detailed insights and metrics for date-fns-timezone
Gathering detailed insights and metrics for date-fns-timezone
Gathering detailed insights and metrics for date-fns-timezone
Gathering detailed insights and metrics for date-fns-timezone
date-fns-tz
Time zone support for date-fns v3 with the Intl API
@date-fns/tz
date-fns timezone utils
date-fns-toolkit
A comprehensive toolkit for working with dates in JavaScript, including timezone support and React integration
date-fns-lost
Lost tools for moment including domain specific language for time manipulations and schedule operations.
Parsing and formatting date strings using IANA time zones for date-fns.
npm install date-fns-timezone
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (96.06%)
TypeScript (3.94%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
137 Stars
25 Commits
18 Forks
2 Watchers
4 Branches
3 Contributors
Updated on Jun 15, 2025
Latest Version
0.1.4
Package Id
date-fns-timezone@0.1.4
Size
13.50 kB
NPM Version
6.4.1
Node Version
10.11.0
Published on
Oct 10, 2018
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
33
Provides parsing and formatting date strings and time zone conversions supporting IANA time zones, following the design of functions in date-fns. List of canonical time zone names is provided by timezone-support.
1const { listTimeZones } = require('timezone-support') 2const { parseFromTimeZone, formatToTimeZone } = require('date-fns-timezone') 3 4// List canonical time zone names: [ 'Africa/Abidjan', ... ] 5const timeZones = listTimeZones() 6 7// Set the date to "2018-09-01T16:01:36.386Z" 8const date = parseFromTimeZone('2018-09-01 18:01:36.386', { timeZone: 'Europe/Berlin' }) 9 10// Set the output to "1.9.2018 18:01:36.386 GMT+02:00 (CEST)" 11const date = new Date('2018-09-01Z16:01:36.386Z') 12const format = 'D.M.YYYY HH:mm:ss.SSS [GMT]Z (z)' 13const output = formatToTimeZone(date, format, { timeZone: 'Europe/Berlin' })
This module can be installed in your project using NPM or Yarn. Make sure, that you use Node.js version 6 or newer.
1$ npm i date-fns-timezone --save
1$ yarn add date-fns-timezone
Functions are exposed as named exports from the package modules, for example:
1const { parseFromTimeZone, formatToTimeZone } = require('date-fns-timezone')
You can read more about the module loading in other environments, like with ES6 or in web browsers. Usage scenarios demonstrate applications of this library in typical real-world scenarios. The API reference lists all functions with a description of their functionality.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2018 Ferdinand Prantl
Licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
117 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More