Skip to content

Commit

Permalink
Merge pull request #15 from farhoudshapouran/fix-year-change-on-selec…
Browse files Browse the repository at this point in the history
…ted-date

fix: change year on select date from another year
  • Loading branch information
farhoudshapouran authored Oct 26, 2023
2 parents dc52053 + 9326fcd commit de23fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DaySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const DaySelector = () => {
const handleSelectDate = (date: string) => {
const newDate = utils
.getDate(date)
.year(utils.getDateYear(currentDate))
.hour(utils.getDateHour(currentDate))
.minute(utils.getDateMinute(currentDate));

onSelectDate(utils.getFormated(newDate));
};

Expand Down

0 comments on commit de23fd7

Please sign in to comment.