fix hardmode
This commit is contained in:
parent
41c3ac5652
commit
223d212fd1
@ -134,7 +134,7 @@ class ViewModel {
|
|||||||
|
|
||||||
if (this.hardmode) {
|
if (this.hardmode) {
|
||||||
for (let index = 0; index < 4; index++) {
|
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;
|
newDates[this.getRandomInt(0, 4)] = cpuDate;
|
||||||
return newDates;
|
return newDates;
|
||||||
|
Loading…
Reference in New Issue
Block a user