react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Localization with first day of week different from Sunday is broken

Open flo-l opened this issue 5 years ago • 3 comments

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):

  • 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.

flo-l avatar Mar 11 '20 13:03 flo-l

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

stepanfichtner avatar Feb 22 '21 09:02 stepanfichtner

Any update on this issue?

Best Regards Jakub

jkasperkiewicz avatar Jun 23 '21 13:06 jkasperkiewicz

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

joakimcarlsten avatar Oct 19 '22 13:10 joakimcarlsten