diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5496394122..c65a144deb 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -372,10 +372,10 @@ if (location.pathname == '/orgy') { const now = new Date(); const day_of_week = now.getUTCDay() - if (day_of_week == 5 || day_of_week == 7) { + if ([4,5,7].includes(day_of_week)) { let hour - if (day_of_week == 5) hour = 0 - else hour = 20 + if (day_of_week == 7) hour = 20 + else hour = 0 let millis = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), hour, 0, 10) - now; if (millis < 0)