From 6853d63bbb51011a9e6e6a84883e82dda3142e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:28:01 -0500 Subject: [PATCH] feat: change to utc --- scripts/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.ts b/scripts/test.ts index cab7f3bab..e8aa6c2cb 100644 --- a/scripts/test.ts +++ b/scripts/test.ts @@ -26,7 +26,7 @@ if (!region || !REGIONS.includes(region)) { } const today = new Date(); -const todayPath = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`; +const todayPath = `${today.getUTCFullYear()}/${today.getUTCMonth() + 1}/${today.getUTCDate()}`; const users = usersRaw.filter(({ blitz }) => idToRegion(blitz) === region); const base = Math.ceil(users.length / PLAYERS_PER_CHUNK); const chunks = times(base, (offset) => ({