Skip to content

Commit

Permalink
MM-52793 : Search calendar selects the day before when selected for a…
Browse files Browse the repository at this point in the history
… date (mattermost#23618)
  • Loading branch information
hchorfispiria authored Jul 19, 2023
1 parent 628273d commit 9322f71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class SearchDateSuggestion extends React.PureComponent<Props> {
};

handleDayClick = (day: Date) => {
const dayString = day.toISOString().split('T')[0];
const dayString = new Date(Date.UTC(day.getFullYear(), day.getMonth(), day.getDate())).toISOString().split('T')[0];
this.props.onClick(dayString, this.props.matchedPretext);
};

Expand Down

0 comments on commit 9322f71

Please sign in to comment.