date-fns v2.11.0 Release Notes
Release Date: 2020-03-13 // about 4 years ago-
๐ Kudos to @oakhan3, @Mukhammadali, @altrim, @leepowellcouk, [@amatzon](@https://github.com/amatzon), @bryanMt, @kalekseev, @eugene-platov and @tjrobinson for working on the release.
๐ Fixed
- ๐ Fixed a bug in
differenceInYears
causing incorrect results when the left date is a leap day. - ๐ Fixed
parseISO
to work correctly around time shift dates. - ๐ Fixed
format
to work correctly with GMT-0752/GMT-0456 and similar timezones.
๐ Changed
- Changed
getDay
typings to return0|1|2|3|4|5|6
instead ofnumber
. - Improved Chinese locale:
- Change date format to meet the national standard (GB/T 7408-2005).
- Improve
ordinalNumber
function behavior. - Add prefix in
formatRelative
depending on if it's a current week or not.
โ Added
- ๐ Fixed a bug in