date-fns 2.11.0
Kudos to @oakhan3, @Mukhammadali, @altrim, @leepowellcouk, @amatzon, @bryanMt, @kalekseev, @eugene-platov and @tjrobinson for working on the release.
Fixed
- Fixed a bug in
differenceInYearscausing incorrect results when the left date is a leap day. - Fixed
parseISOto work correctly around time shift dates. - Fixed
formatto work correctly with GMT-0752/GMT-0456 and similar timezones.
Changed
- Changed
getDaytypings to return0|1|2|3|4|5|6instead ofnumber. - Improved Chinese locale:
- Change date format to meet the national standard (GB/T 7408-2005).
- Improve
ordinalNumberfunction behavior. - Add prefix in
formatRelativedepending on if it's a current week or not.