Socket
Socket
Sign inDemoInstall

date-fns-tz

Package Overview
Dependencies
1
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous13456Next

3.0.0-beta.3

Diff

marnusw
published 3.0.0-beta.2 •

marnusw
published 3.0.0-beta.1 •

marnusw
published 3.0.0-beta.0 •

marnusw
published 2.0.1 •

Changelog

Source

v2.0.1 (9 March 2024)

  • [DOCS] Fix incorrect output comment (#270)
  • [DEPS] Limit to date-fns 2.x (#262, #267)
  • [REFACTOR] tzTokenizeDate: Remove weird unneeded regex (#254)
  • [BUGFIX] Improving correctness of the formatInTimeZone close to the DST threshold (#247)
  • [ENHANCEMENT] Use hourCycle for browsers that support hour cycle formatting (#231)
  • [BUGFIX] Fix tzParseTimezone to parse 00:30 timezones properly (#229)
marnusw
published 2.0.0 •

Changelog

Source

v2.0.0 (30 January 2023)

  • [BREAKING CHANGE] Optimize configuration for ESM exports (entry points for cjs / esm / typescript) (#212)

Upgrade guide: Both CJS and ESM imports now use the default import paths. CJS will continue working unchanged; to fix ESM imports:

Before:

import { format } from 'date-fns-tz/esm'
import utcToZonedTime from 'date-fns-tz/esm/utcToZonedTime'

After:

import { format } from 'date-fns-tz'
import utcToZonedTime from 'date-fns-tz/utcToZonedTime'
marnusw
published 1.3.8 •

Changelog

Source

v1.3.8 (30 January 2023)

  • [TESTS] Tests documenting zonedTimeToUtc daylight saving jumps (#220)
  • [TYPES] Update format types to match date-fns (#199)
  • [BUGFIX] Fixed undefined timezone error (#214)
marnusw
published 1.3.7 •

Changelog

Source

v1.3.7 (31 August 2022)

  • [BUGFIX] Fixed getting the time zone name in partsTimeZone out of formatToParts (#196)
  • [BUGFIX] tzTokenizeDate uses month: numeric as a possible fix for #190
marnusw
published 1.3.6 •

Changelog

Source

v1.3.6 (13 July 2022)

  • [BUGFIX] Remove the use of const (#192)
marnusw
published 1.3.5 •

Changelog

Source

v1.3.5 (18 June 2022)

  • [BUGFIX] Fixed utcToZonedTime not working with year < 100; thanks @healqq (#185)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc