react-datepicker
react-datepicker copied to clipboard
Localization with first day of week different from Sunday is broken
Describe the bug If a locale does specify a differen first day of the week than sunday, the calendar is showing wrong date/weekday combinations.
To Reproduce Steps to reproduce the behavior:
- use a locale that sets a different weekday than sunday as first day of the week, eg. en-GB.
- look at the calendar and check if date and weekday match
Expected behavior The grid of days should be shifted, such that eg. mondays are in the first column.
Screenshots

Desktop (please complete the following information):
- OS: Linux & Windows
- Browser Chrome & Firefox
- Version any
Smartphone (please complete the following information):
- Device: Android
- OS: any
- Browser stock & firefox
- Version any
Additional context I introduced this bug with #46 . I'll try and fix it as soon as I have time.
Hi, it's some progress in this issue?
I'm currently solving the localization for cs and I'm solving exactly this problem that the date doesn't match the day of the week
Thank you
Stepan
Any update on this issue?
Best Regards Jakub
What did you end up going with? We're having this same issue atm.