mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Change: Make custom status clear after 'Today', clear at midnight (#29072)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user