[X] I followed instructions in documentation written for my React-Calendar version
[X] I have checked if this bug is not already reported
Description
I'm using the calendar in my react component, when I'm selecting a date range from 1st of Feb 2023 to Feb 10th 2024. when I'm accessing the values of the value which stores the date range it shows 31st of Jan to Feb 10th 2024.
Here the end date value is not getting effected, but only the start date value is taking a previous date.
Let's say this is the Calendar component which I have created as a separate component. I'm passing the value and onChange via the props to the Calendar component.
The below code just shows an illustration of how it is being used
Before you start - checklist
Description
I'm using the calendar in my react component, when I'm selecting a date range from 1st of Feb 2023 to Feb 10th 2024. when I'm accessing the values of the value which stores the date range it shows 31st of Jan to Feb 10th 2024.
Here the end date value is not getting effected, but only the start date value is taking a previous date.
Steps to reproduce
Let's say this is the Calendar component which I have created as a separate component. I'm passing the value and onChange via the props to the Calendar component.
The below code just shows an illustration of how it is being used
And the states are mentioned in the parent component in this manner
const [value, onChange] = useState([new Date(), new Date()]);
Expected behavior
Expected behaviour was to select the original selected date which was selected for the start_date
Actual behavior
Here the start_date is selecting the date of a previous day
Additional information
No response
Environment
dependencies - "dependencies": { "@wojtekmaj/date-utils": "^1.1.3", "clsx": "^2.0.0", "get-user-locale": "^2.2.1", "make-event-props": "^1.6.0", "prop-types": "^15.6.0", "react-calendar": "^4.6.0", "react-fit": "^1.7.0", "update-input-width": "^1.4.0" },