Skip to content

Incorrect Calendar display and missing dates in 'month' view when using dayjsLocalizer - March 2024 #2534

@ncaraker

Description

@ncaraker

Check that this is really a bug

  • I confirm

Reproduction link

https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/examples--dayjs-localizer

Bug description

When using the dayjsLocalizer the month 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 story

Expected 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

Screenshot 2024-03-12 at 4 39 13 PM

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.

Screenshot 2024-03-12 at 4 41 56 PM

react-big-calendar version

1.11.2

React version

^17.0.2

Platform/Target and Browser Versions

All platforms

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions