# date-fns-tz: 4.2 out of 10

Keep, but not for new work. 8th of 10 in [Date and time libraries](https://elestia.ai/opensource/dates/index.md).

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

- **Overall: 4.2** (likely 3.2 to 5.3)
  - Claude Opus 5.5 (4.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): 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 many: 3.8** (likely 2.8 to 4.9)
  - Claude Opus 5.5 (4.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): 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 lot: 5.6** (likely 4.5 to 6.6)
  - Claude Opus 5.5 (5.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): 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 time: 2.7** (likely 1.6 to 4.1)
  - Claude Opus 5.5 (2.5): 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.
  - GPT-6.2 Sol (2.8): 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 widely: 4.9** (likely 3.9 to 6.0)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (4.3): 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.
- **Vouched for: 4.7** (likely 3.4 to 6.0)
  - Claude Opus 5.5 (3.5): 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): 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.
- **Safe: 6.4** (likely 5.3 to 7.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.3): 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

- Downloads, 4 weeks: 58M
- In a year: ×2.7
- GitHub stars: 1.2k
- Commits, 12 months: 0
- Last npm release: Sept 2024
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/marnusw/date-fns-tz
- npm: https://www.npmjs.com/package/date-fns-tz

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
