From 223d212fd1a6aa849911737172afee38c3c6d40c Mon Sep 17 00:00:00 2001 From: Florian Schmid Date: Wed, 26 Apr 2023 23:58:00 +0200 Subject: [PATCH] fix hardmode --- src/newMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newMode.ts b/src/newMode.ts index 3a82da2..065c4f4 100644 --- a/src/newMode.ts +++ b/src/newMode.ts @@ -134,7 +134,7 @@ class ViewModel { if (this.hardmode) { for (let index = 0; index < 4; index++) { - newDates[index] = this.getRandomDate(new Date(year - 1), new Date(year + 1)); + newDates[index] = this.getRandomDate(new Date((year - 1) + "-" + "01-01"), new Date((year + 1) + "-" + "01-01")); } newDates[this.getRandomInt(0, 4)] = cpuDate; return newDates;