diff --git a/web/lib/champion-data.js b/web/lib/champion-data.js index a524bb8..ee197e2 100644 --- a/web/lib/champion-data.js +++ b/web/lib/champion-data.js @@ -70,9 +70,13 @@ function hashString(str) { return hash >>> 0; } -/** Get today's date string for daily seed */ +/** Get today's local date string for daily seed */ export function getTodaySeed() { - return new Date().toISOString().slice(0, 10); + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, "0"); + const day = String(now.getDate()).padStart(2, "0"); + return `${year}-${month}-${day}`; } /** Get champion image URL from Data Dragon CDN */