From a30b34df70b24d9ed1d938634d7a5b6a46948aa8 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:19:45 -0400 Subject: [PATCH] [F] Fix mai reboot? --- .../icu/samnyan/aqua/sega/maimai2/Maimai2ServletController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2ServletController.kt b/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2ServletController.kt index 5efc6fd6..0561b10c 100644 --- a/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2ServletController.kt +++ b/src/main/java/icu/samnyan/aqua/sega/maimai2/Maimai2ServletController.kt @@ -217,8 +217,8 @@ class Maimai2ServletController( // The time is adjusted to the next day if it's 12 hours or more from now. // And it's using local timezone instead of treating it as UTC. // The official maimai cabs will reboot every day, but we don't want that - // So, we need to return the hour and minute 10 hours from now - val rebootStart = Instant.now().atZone(ZoneId.of("Asia/Tokyo")).plusSeconds(60 * 60 * 10) + // So, we need to return the hour and minute 5 hours ago + val rebootStart = Instant.now().atZone(ZoneId.of("Asia/Tokyo")).minusHours(5) val rebootEnd = rebootStart.plusSeconds(60) mapOf(