mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 14:37:27 +08:00
[F] Fix mai reboot?
This commit is contained in:
@@ -214,10 +214,11 @@ class Maimai2ServletController(
|
|||||||
val getGameSetting = BaseHandler {
|
val getGameSetting = BaseHandler {
|
||||||
// The client-side implementation for reboot time is extremely cursed.
|
// The client-side implementation for reboot time is extremely cursed.
|
||||||
// Only hour and minute are used, date is discarded and second is set to 0.
|
// Only hour and minute are used, date is discarded and second is set to 0.
|
||||||
|
// 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.
|
// 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
|
// The official maimai cabs will reboot every day, but we don't want that
|
||||||
// So, we need to return the hour and minute 18 hours from now
|
// 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 * 18)
|
val rebootStart = Instant.now().atZone(ZoneId.of("Asia/Tokyo")).plusSeconds(60 * 60 * 10)
|
||||||
val rebootEnd = rebootStart.plusSeconds(60)
|
val rebootEnd = rebootStart.plusSeconds(60)
|
||||||
|
|
||||||
mapOf(
|
mapOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user