Complementary library for date-fns v2 adding IANA time zone support
This release adds support for date-fns
v3. Thank you @christopherklint97 (#265) and everyone who helped test and fix the beta releases.
BREAKING CHANGES
date-fns
v2 is no longer supportedutcToZonedTime
to toZonedTime
to make the name less confusing, just search & replacezonedTimeToUtc
to fromZonedTime
to make the name less confusing, just search & replaceimport formatInTimeZone from 'date-fns-tz/formatInTimeZone'
to
import { formatInTimeZone } from 'date-fns-tz/formatInTimeZone'
date-fns
v3date-fns
v3date-fns
no longer supports itflow
support since date-fns
also removed itformatInTimeZone
types and fp argumentsformatInTimeZone
zonedTimeToUtc
parsing of date strings with time zone specifiersInvalid Date
for bad date / time zone
inputs, and format
functions throw a RangeError
format
returning wrong time zone offset close to DST. (#138)format
handling of quoted text next to a time zone token (#136)Rewrite import paths in esm version to use esm version of date-fns. (#8 @pkaske)
Removed const
, let
, template string and arrow function syntax which is not transpiled in the ems build.
Fixes the errors with the Typescript typings (#3).
Included typings in package.json.