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.
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.
- blog.date-fns.org/v40-with-time-zone-support: First-party time zone support in date-fns v4 supersedes it.
- github commitsLastYear: No activity in the last year.
- npm downloadsLast4Weeks: Growth is below the median.
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.
- npm latestPublishedAt; github commitsLastYear; peers date-fns: The add-on has stalled while date-fns remains active.
- github.com/date-fns/date-fns/blob/main/pkgs/core/docs/timeZones.md: Documents the official integration for new projects.
- github.com/marnusw/date-fns-tz/pull/319: A fix for a reproduced daylight-saving formatting error is still open.
- github.com/Hacker0x01/react-datepicker/releases: A current integration still gives the package a clear use case.
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.
- blog.date-fns.org/v40-with-time-zone-support: date-fns v4 ships its own time zone support through @date-fns/tz.
- github description: Described as a companion library to date-fns.
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.
- 2025.stateofjs.com/en-US/other-tools: Measures regular use of date-fns and other date libraries.
- github.com/marnusw/date-fns-tz: Documents a focused set of formatting and date-picker helpers.
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.
- github.com/marnusw/date-fns-tz/issues: Open bugs: toZonedTime returns UTC (#316), a silent system-time-zone fallback (#315), and Casablanca off by one hour (#318).
- npm-compare.com/date-fns-tz,luxon,moment-timezone: Offers conversion helpers, not a time-zone-aware date type, and is less ergonomic than Luxon.
- npm hasTypes: Ships TypeScript types.
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.
- npm latestVersion, hasTypes: The stable version is 3.2.0 and ships types.
- github.com/marnusw/date-fns-tz: Documents formatting, conversions, and invalid-input behavior.
- github.com/marnusw/date-fns-tz/pull/319: Open fix with a user reproduction on 3.2.0.
- github.com/date-fns/date-fns/blob/main/pkgs/core/docs/timeZones.md: Documents calendar arithmetic with a time-zone context.
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.
- github commitsLastYear, releasesLastYear; npm latestPublishedAt: Zero commits and releases in the past year. Latest npm release was September 2024.
- github.com/marnusw/date-fns-tz/pulls: Two October 2026 formatting fixes remain open.
- github.com/orgs/date-fns/discussions/4040: Users encountered missing exports after the v3 renames.
- github.com/date-fns/date-fns/blob/main/pkgs/tz/README.md: The official time-zone package lives in the date-fns monorepo.
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.
- safeguard.sh/resources/blog/date-fns-tz-npm-package-guide: Keep it in v2/v3 projects; new v4 projects should default to @date-fns/tz.
- fastly.jsdelivr.net/npm/date-fns@4.3.0/docs/timeZones.md: The date-fns docs name it as the option for versions before v4.
- pkgpulse.com/guides/best-javascript-date-libraries-2026: This 2026 guide does not name it among recommended date libraries.
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.
- github.com/Hacker0x01/react-datepicker/releases: Released time-zone support uses date-fns-tz.
- github.com/directus/directus/blob/main/app/package.json: Directus lists date-fns-tz as an app dependency.
- blog.date-fns.org/v40-with-time-zone-support: Records the maintainer’s earlier recommendation and the official v4 integration.
- 2025.stateofjs.com/en-US/other-tools: Survey figures cover date-fns without a separate measure for this add-on.
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.
- npm license, dependencies; advisories total: MIT, zero direct dependencies, and zero OSV advisories.
- scorecard score, checks: Score 3.2. Packaging and signing checks were inconclusive.
- app.unpkg.com/date-fns-tz%403.2.0/files/package.json: Published manifest declares date-fns as a peer dependency.
- github.com/marnusw/date-fns-tz/security: GitHub shows no published advisories or security policy.
- github.com/ossf/scorecard/blob/main/docs/mcp.md: Defines a score of −1 as inconclusive.
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
- 8.0date-fns
- 7.5temporal-polyfill
- 6.8Day.js
- 6.6Luxon
- 5.5Tempo
- 5.2Spacetime
- 5.0@js-temporal/polyfill
- 4.2date-fns-tz
- 3.8Moment Timezone
- 3.6Moment.js