website refactor

This commit is contained in:
2026-01-20 18:48:14 +01:00
parent 444afda435
commit 06207bf835
4 changed files with 65 additions and 3 deletions

View File

@@ -47,7 +47,9 @@ export class RacingRaceFactory {
} else {
// 40% scheduled (8 out of 20)
status = 'scheduled';
scheduledAt = this.addDays(this.baseDate, 1 + ((statusMod - 13) * 2));
// Ensure scheduled races are always in the future by using current date as reference
const now = new Date();
scheduledAt = this.addDays(now, 1 + ((statusMod - 13) * 2));
}
const base = {