-
Bug descriptionSeems like the week number is computed wrong when using weekStartsOn={1}. At least according to the ISO-8601 standard. https://www.epochconverter.com/weeknumbers says it 24 today but the react-day-picker says it's 25. To reproducehttps://codesandbox.io/s/day-picker-sandbox-forked-jdx2my?file=/src/Calendar.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Set the I understand this was an option hidden in the docs, so I've added more details: |
Beta Was this translation helpful? Give feedback.
Set the
ISOWeek
prop to switch to the ISO Week Date: https://codesandbox.io/s/day-picker-sandbox-forked-4zpvn6?file=/src/Calendar.jsI understand this was an option hidden in the docs, so I've added more details:
https://react-day-picker.js.org/basics/customization#switching-to-iso-week-dates. Thanks for the report!