update tests

This commit is contained in:
root
2026-06-08 22:06:30 -04:00
parent 79024235ef
commit 60ecacb7f8
54 changed files with 13243 additions and 5561 deletions
+3 -1
View File
@@ -67,7 +67,9 @@ class SemesterRangeService
$lastDay = $this->configService->getLastSchoolDay();
try {
$target = new DateTimeImmutable($date ?: 'now');
$target = ($date !== null && $date !== '')
? new DateTimeImmutable($date)
: DateTimeImmutable::createFromInterface(now());
} catch (\Throwable) {
return '';
}