Open Helfull opened 3 years ago
Taken from https://www.epochconverter.com/weeks/2021
If i set my date like this
dayjs('21', 'YY').isoWeek(23)
i get back for startOf('isoWeek') the 01.06.2020 which does overwrite the year i set.
startOf('isoWeek')
01.06.2020
Expected behavior Here is an example with assertions of what i expect https://github.com/Helfull/dayjs-bug
Information
I can confirm this behavior, which breaks parsing of weeks in 2021, 2027, 2032 etc
I can also confirm this behavior.
Please be careful with isoWeek.
I need to review all my code because of this
Taken from https://www.epochconverter.com/weeks/2021
If i set my date like this
i get back for
startOf('isoWeek')
the01.06.2020
which does overwrite the year i set.Expected behavior Here is an example with assertions of what i expect https://github.com/Helfull/dayjs-bug
Information