gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
5.86k stars 700 forks source link

Bug : Date in modifier " booked " is placed one month ahead #2205

Open MohamedDanis opened 2 weeks ago

MohamedDanis commented 2 weeks ago

Description

Add the attributes modifiers and modifierClassNames to the DatePicker Component. As per the documentation on custom modifiers, I have added a date as value to booked key in in modifier object and defined a classname for modifer with proper styling. But the modifier showing in the next month of same date.

Expected Behavior

The modifier should show in the defined date

Actual Behavior

The modifier is placed in next month of same date

Steps to Reproduce

https://codesandbox.io/p/sandbox/quirky-maxwell-qz423f?file=%2Fsrc%2Fstyles.css%3A11%2C15

Possible Solution

nop.

Screenshots

If applicable, add screenshots or GIFs to help explain your problem.

Your Environment