From bc6f162d2000e445b129a2fe8905024c6fb66bcb Mon Sep 17 00:00:00 2001 From: Ivy Gesare <83957195+Gesare5@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:18:13 +0300 Subject: [PATCH] Change: Make custom status clear after 'Today', clear at midnight (#29072) --- .../src/components/custom_status/custom_status_modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/channels/src/components/custom_status/custom_status_modal.tsx b/webapp/channels/src/components/custom_status/custom_status_modal.tsx index 8852a20c96..1ada59a410 100644 --- a/webapp/channels/src/components/custom_status/custom_status_modal.tsx +++ b/webapp/channels/src/components/custom_status/custom_status_modal.tsx @@ -217,7 +217,7 @@ const CustomStatusModal: React.FC = (props: Props) => { case FOUR_HOURS: return moment().add(4, 'hours').seconds(0).milliseconds(0).toISOString(); case TODAY: - return moment().add(1, 'day').set({hour: 8, minute: 0}).toISOString(); + return moment().endOf('day').add(1, 'minute').seconds(0).milliseconds(0).toISOString(); case THIS_WEEK: return moment().endOf('week').toISOString(); case DATE_AND_TIME: