mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: change to utc
This commit is contained in:
1 parent
b29f7ca7f5
commit
73903114c9
1 file changed
+1
-1
+1
-1
@@ -26,7 +26,7 @@ if (!region || !REGIONS.includes(region)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const today = new Date();
|
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 users = usersRaw.filter(({ blitz }) => idToRegion(blitz) === region);
|
||||||
const base = Math.ceil(users.length / PLAYERS_PER_CHUNK);
|
const base = Math.ceil(users.length / PLAYERS_PER_CHUNK);
|
||||||
const chunks = times(base, (offset) => ({
|
const chunks = times(base, (offset) => ({
|
||||||
|
|||||||
Reference in new issue
Block a user