Change: Make custom status clear after 'Today', clear at midnight (#29072)

This commit is contained in:
Ivy Gesare
2024-12-06 01:18:13 +08:00
committed by GitHub
parent 6b648199f0
commit bc6f162d20
@@ -217,7 +217,7 @@ const CustomStatusModal: React.FC<Props> = (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: