fix hardmode

This commit is contained in:
Florian Schmid 2023-04-26 23:58:00 +02:00
parent 41c3ac5652
commit 223d212fd1

View File

@ -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;