Kudos to @oakhan3, @Mukhammadali, @altrim, @leepowellcouk, @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.