diff --git a/webapp/channels/src/components/custom_status/date_time_input.tsx b/webapp/channels/src/components/custom_status/date_time_input.tsx index 5af980c937..c322eaa6ce 100644 --- a/webapp/channels/src/components/custom_status/date_time_input.tsx +++ b/webapp/channels/src/components/custom_status/date_time_input.tsx @@ -92,7 +92,7 @@ const DateTimeInputContainer: React.FC = (props: Props) => { const setTimeAndOptions = () => { const currentTime = getCurrentMomentForTimezone(timezone); let startTime = moment(time).startOf('day'); - if (time.date() === currentTime.date()) { + if (currentTime.isSame(time, 'date')) { startTime = getRoundedTime(currentTime); } setTimeOptions(getTimeInIntervals(startTime));