From dc3a19daca4c9f9b74a5c0b90fe013a3403a35b7 Mon Sep 17 00:00:00 2001 From: Thayol Date: Sat, 2 Dec 2023 23:06:12 +0100 Subject: [PATCH] fix first championship the next day --- js/championship.js | 2 +- js/day.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/championship.js b/js/championship.js index bde7938..670186a 100644 --- a/js/championship.js +++ b/js/championship.js @@ -20,7 +20,7 @@ export default class Championship { if (time == null) { remainingOffset += 1440 day = Day.tomorrow - time = Championship.firstTimeNextDay + time = Championship.firstTimeTomorrow } return new Championship({ diff --git a/js/day.js b/js/day.js index 329fee8..1eac6cb 100644 --- a/js/day.js +++ b/js/day.js @@ -12,7 +12,7 @@ export default class Day { static get tomorrow() { let day = Day.today + 1 - if (day > 6) day -= 6 + if (day > 6) day -= 7 return day }