-
-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
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
DateRangePicker - Error on week number for 2025 #3935
Comments
Finally I think, it's real bug. |
The day the first week of the year starts depends on the region. The ISO 8601 standard is as follows:
Currently, the |
Thank you for your explanations. |
I found that date-fns sets different firstWeekContainsDate default values for different regions. Based on this, I made a fix. You can see if it solves the problem you encountered. https://rsuite-nextjs-git-fix-calendar-firstweekcontainsdate-rsuite.vercel.app/guide/i18n/#usage |
Infortunately i think is not OK :p. |
Hi @mojimbo80 Google Calendar should be using the week number calculated in US time. I can see the same week number as Google Calendar when I switch the language to en-US. |
What version of rsuite are you using?
5.69.0
What version of React are you using?
18
What version of TypeScript are you using (if any)?
No response
What browser are you using?
Chrome
Describe the Bug
On https://rsuitejs.com/components/date-range-picker/, section Show Week Numbers, the DateRangePicker display 53 weeks for 2025.
But in reality there is only 52 weeks for 2025 : https://calendar.online/calendar-weeks/2025
I think it is a bug.
Expected Behavior
No response
To Reproduce
No response
The text was updated successfully, but these errors were encountered: