We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug I am trying to get the start and end of a given iso week e.g.:
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
The text was updated successfully, but these errors were encountered:
I can confirm this behavior, which breaks parsing of weeks in 2021, 2027, 2032 etc
Sorry, something went wrong.
I can also confirm this behavior.
Please be careful with isoWeek.
I need to review all my code because of this
No branches or pull requests
Describe the bug
I am trying to get the start and end of a given iso week
e.g.:
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
The text was updated successfully, but these errors were encountered: