Skip to content

Commit

Permalink
Either a DateTime or a parsing failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Nov 22, 2023
1 parent 6a3e844 commit 4916b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/Service/ImportExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function convertImportedTime(
if ($contest) {
$timeValue = Utils::abstime($contest->getAbsoluteTime($timeValue));
}
/** @var DateTime|bool $time */
$time = new DateTime($timeValue);
} else {
/** @var DateTime|DateTimeImmutable $time */
Expand Down

0 comments on commit 4916b07

Please sign in to comment.