diff --git a/src/components/calendar/DaysView.tsx b/src/components/calendar/DaysView.tsx index e4a03721..a0f14be1 100644 --- a/src/components/calendar/DaysView.tsx +++ b/src/components/calendar/DaysView.tsx @@ -94,7 +94,7 @@ export class CustomDaysView extends DaysView { }; confirm = () => { - const date = this.props.viewDate.clone(); + const date = (this.props.selectedDate || this.props.viewDate).clone(); this.props.setDateTimeState({ selectedDate: date