Skip to content

Commit

Permalink
Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed Jul 13, 2023
1 parent 7e43140 commit 08b77a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Server.php
Expand Up @@ -289,7 +289,7 @@ private function checkDateFormat($date) {
if ($datetime === false) {
$datetime = \DateTime::createFromFormat('Y-m-d', $date);
}
return ($datetime !== false) && !array_sum($datetime->getLastErrors());
return ($datetime !== false) && ($datetime->getLastErrors() !== false);
}

}

0 comments on commit 08b77a4

Please sign in to comment.