date-fns-tz
Advanced tools
Changelog
v2.0.1 (9 March 2024)
tzTokenizeDate
: Remove weird unneeded regex (#254)formatInTimeZone
close to the DST threshold (#247)Changelog
v2.0.0 (30 January 2023)
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'
Changelog
v1.3.8 (30 January 2023)
zonedTimeToUtc
daylight saving jumps (#220)format
types to match date-fns (#199)undefined
timezone error (#214)Changelog
v1.3.7 (31 August 2022)
partsTimeZone
out of formatToParts
(#196)tzTokenizeDate
uses month: numeric
as a possible fix for #190