From b834b5190445e3b71361470afbb4607f4684a6d8 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 4 Apr 2025 04:26:59 +0200 Subject: [PATCH] Update worldStateController.ts --- src/controllers/dynamic/worldStateController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/dynamic/worldStateController.ts b/src/controllers/dynamic/worldStateController.ts index 1c738117..70b29b36 100644 --- a/src/controllers/dynamic/worldStateController.ts +++ b/src/controllers/dynamic/worldStateController.ts @@ -167,7 +167,7 @@ export const worldStateController: RequestHandler = (req, res) => { // Sortie cycling every day { const dayStart = getTorontoTimeAtHour(EPOCH + day * 86400000, 12); - const dayEnd = dayStart + 86400000; + const dayEnd = getTorontoTimeAtHour(EPOCH + (day + 1) * 86400000, 12); const rng = new CRng(day);