Skip to content

Commit

Permalink
fixed timezone issues with calendar date selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Lor3wp committed Dec 6, 2023
1 parent 839c089 commit ffe0587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const RentCalendar = ({ futureDates, setSelectedDate }) => {
};

const handleChange = (date) => {
setSelectedDate(date);
date.setHours(date.getHours() + 12);
setSelectedDate(date);
console.log(date.getHours());
};

const tileDisabled = ({ date }) => {
Expand Down

0 comments on commit ffe0587

Please sign in to comment.