update tests
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user