y0c / react-datepicker

📅 React DatePicker Library (Flexible, Reusable)
https://y0c.github.io/react-datepicker
MIT License
168 stars 32 forks source link

Localization with first day of week different from Sunday is broken #55

Open flo-l opened 4 years ago

flo-l commented 4 years ago

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:

  1. use a locale that sets a different weekday than sunday as first day of the week, eg. en-GB.
  2. 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 image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I introduced this bug with #46 . I'll try and fix it as soon as I have time.

stepanfichtner commented 3 years ago

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

jkasperkiewicz commented 3 years ago

Any update on this issue?

Best Regards Jakub

joakimcarlsten commented 2 years ago

What did you end up going with? We're having this same issue atm.