Open ncaraker opened 7 months ago
We're also seeing issues with the dayjs localizer. Not the same as you (March 10 isn't missing) but many of the days in March are incorrectly rendering as out of range. This happens for all the years we've tested and is reproducible in the Storybook. Switching to Moment localizer resolves the issue.
i can take a look at trying to tackle this.
Looks like it's directly related to leap years.
This issue still exists in version 1.13.1.
Here is how it looks when I use dayjs as the localizer:
And here is how it looks when I use luxon
:
As we can see, the cells for 01 - 05
is not rendered correctly
Check that this is really a bug
Reproduction link
https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/examples--dayjs-localizer
Bug description
When using the
dayjsLocalizer
themonth
view for March 2024 is incorrect. March 10th 2024 is missing entirely and the days of the week display do not align with the dates on the calendar. This can be seen in the storybook examples provided (here) Note: To reproduce this you must view March 2024 on this storyExpected Behavior
All dates should show on the calendar. The days of the week should start on Sunday and should align with calendar dates as expected
Actual Behavior
March 10th 2024 is missing entirely from the calendar, and the days of the week start on incorrect day and do not line up with the corresponding days on the calendar.
react-big-calendar version
1.11.2
React version
^17.0.2
Platform/Target and Browser Versions
All platforms
Validations
Would you like to open a PR for this bug?