Elestia Open Source Ratings
4.2

date-fns-tz

Keep, but not for new work. 8th of 10 date and time libraries.

date-fns-tz adds IANA time zone conversion and formatting to date-fns v3 and v4. It still works, but nothing has been released since September 2024, and the date-fns team's own @date-fns/tz now does this job for date-fns v4. Keep it where it already runs. For new work, pick @date-fns/tz or Luxon.

Best for: Existing date-fns v2 or v3 codebases that already use its toZonedTime/fromZonedTime/formatInTimeZone helpers and want no migration.

GitHubnpm

Scores

Overall4.2

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

It works and is still installed widely, but it has not been updated in nearly two years. The date-fns team's @date-fns/tz now covers its job for v4 with a better model, and Luxon or a Temporal polyfill handle time zones more correctly. Keep it where it runs; pick something else for new work.

GPT-6.2 Sol: 4.3, likely 3.3 to 5.5

Keep it where its conversion helpers or a date-picker integration already do the job. For most new work, date-fns with @date-fns/tz handles calculations in the chosen zone and is the stronger maintenance bet. The long release gap and open formatting fixes weigh most, while current integrations keep it a reasonable choice for some projects.

Needed by many3.8

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Time zone handling is a real need for many web apps. This package serves only people who already use date-fns, and among them the first-party @date-fns/tz now competes for the same users. That makes it a niche within the category.

GPT-6.2 Sol: 3.6, likely 2.5 to 4.8

Apps that schedule events or display times across regions often need these helpers. This package serves the subset that uses date-fns and needs explicit time-zone conversion or formatting. State of JavaScript measures date-fns use, so the size of that subset remains uncertain.

Helps a lot5.6

How well does it do the job for those who need it?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

It handles conversion and formatting well enough, and AI agents know its API well. But it has no zoned date type, and arithmetic on its shifted Date objects is easy to get wrong. Open bugs report wrong offsets for some zones and locales. Luxon and @date-fns/tz model time zones more correctly.

GPT-6.2 Sol: 6.1, likely 5.0 to 7.2

Version 3.2.0 has typed helpers and clear examples for displaying timestamps and converting date-picker inputs to UTC. Users reproduced a one-hour formatting error around the host’s daylight-saving transition, and the fix is still open. Projects that do calendar arithmetic in a specific zone get better support from date-fns with @date-fns/tz.

Holds up over time2.7

Will it still be a good choice in two years?

Claude Opus 5.5: 2.5, likely 1.5 to 4.0

The repository has had no commits since December 2024 and no npm release since September 2024. It has one main maintainer. Its job has moved to the first-party @date-fns/tz, and the ecosystem is moving away from it. It is not archived and still works with date-fns v4, so it will not break at once.

  • github commitsLastYear: 0 commits in the last year; last push 2024-12-31.
  • npm latestPublishedAt: Last release was 3.2.0 on 2024-09-30.
  • unpkg.com/date-fns-tz@3.2.0/package.json: Peer range is date-fns ^3 || ^4.
  • scorecard Maintained: Maintained check scores 0.

GPT-6.2 Sol: 2.8, likely 1.7 to 4.1

The bundle records zero commits and releases in the past year. October 2026 formatting fixes remain open, and users have reported confusion over the v3 renames. The official date-fns time-zone package gives new projects a maintained path, while open contributions leave room for a revival.

Used widely4.9

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

It has 58M downloads in four weeks and about 6,900 dependent repositories. Many of those downloads are transitive installs. Its growth ratio is about 2.7, below the 4.1 median and below date-fns itself, so it is losing share. Dependent repositories are about 1% of date-fns's count.

  • npm downloadsLast4Weeks: 58.4M now vs 21.6M a year ago, a ratio of about 2.7 against a 4.1 median.
  • dependents: 6,865 repos and 676 packages, against 750k repos for date-fns.
  • bluesky posts: 0 posts and 0 HN stories, so almost no current attention.

GPT-6.2 Sol: 4.3, likely 3.3 to 5.5

Ecosyste.ms found 6,865 dependent repositories and 676 packages, well below Luxon and Moment Timezone on tracked repositories. Four-week downloads rose to 58.4 million, but growth was 2.7× against the catalog median of 4.1× and also lagged date-fns and Luxon. Repeated and indirect installs make it hard to tell how many teams choose it today.

  • dependents repos, packages: 6,865 indexed repositories and 676 npm packages.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio: 58.4 million versus 21.6 million, or 2.7× against the 4.1× median.
  • peers date-fns, Luxon, Moment Timezone: Luxon and Moment Timezone have much larger indexed footprints.
  • github.com/Hacker0x01/react-datepicker/releases: React Datepicker ships an optional integration.
Vouched for4.7

Who stands behind it being good?

Claude Opus 5.5: 3.5, likely 2.0 to 5.0

Older date-fns docs pointed to it for releases before v4, and comparison sites list it. But current guidance, including third-party guides, tells new date-fns v4 projects to use @date-fns/tz instead. No current survey, benchmark or well-known production endorsement surfaced.

GPT-6.2 Sol: 5.8, likely 4.7 to 7.0

React Datepicker uses it for its time-zone option, and Directus lists it as an app dependency. The date-fns maintainer recommended it for years and now documents the official package for newer versions. Those integrations show it works for real projects, though recent satisfaction surveys and benchmarks for this specific package are scarce.

Safe6.4

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It has no runtime dependencies, no known advisories and an MIT licence, so its attack surface is small. The Scorecard is low at 3.2: no security policy, no SAST, Maintained at 0, and only partial code review. Any future issue might not get a quick fix.

  • advisories total: 0 advisories.
  • npm dependencies: 0 runtime dependencies.
  • scorecard score: 3.2 overall; Security-Policy, SAST and Maintained all score 0.
  • npm license: MIT.

GPT-6.2 Sol: 6.3, likely 5.0 to 7.6

The MIT-licensed package has zero direct runtime dependencies, requires date-fns as a peer, and has no advisories in the supplied OSV data. Its 3.2/10 OpenSSF Scorecard shows gaps in maintenance, security policy, fuzzing, and static analysis. The publishing process, publisher count, and release signing remain unverified, so confidence in how quickly a security fix would ship is limited.

Good

  • It has no runtime dependencies and relies on the built-in Intl API, so it is small and ships no time zone data of its own.
  • formatInTimeZone, toZonedTime and fromZonedTime are simple helpers that fit the functional style of date-fns.
  • It ships TypeScript types, and its peer range accepts both date-fns v3 and v4.
  • It has a long record with no security advisories, and about 6,900 GitHub repositories depend on it.

Bad

  • Nothing has been released since 3.2.0 in September 2024, and there have been no commits for nearly two years.
  • @date-fns/tz from the date-fns team now offers first-party time zone support with zoned TZDate objects.
  • It has no time-zone-aware date type, so values are shifted Date objects that are easy to misuse in arithmetic.
  • 68 issues are open, including recent wrong-offset bugs that nobody has answered.

The numbers

npm downloads, 4 weeks
58M ×2.7 in a year
GitHub stars
1.2k
Commits, 12 months
0
npm version
3.2.0 Sept 2024
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.2 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (marnusw/date-fns-tz), npm (date-fns-tz), OSV and the OpenSSF Scorecard.

Date and time libraries

  1. 8.0date-fns
  2. 7.5temporal-polyfill
  3. 6.8Day.js
  4. 6.6Luxon
  5. 5.5Tempo
  6. 5.2Spacetime
  7. 5.0@js-temporal/polyfill
  8. 4.2date-fns-tz
  9. 3.8Moment Timezone
  10. 3.6Moment.js
Compare all 10 on six scores