Fix #11
This commit is contained in:
parent
7e431406f7
commit
08b77a4821
|
@ -289,7 +289,7 @@ class Server {
|
|||
if ($datetime === false) {
|
||||
$datetime = \DateTime::createFromFormat('Y-m-d', $date);
|
||||
}
|
||||
return ($datetime !== false) && !array_sum($datetime->getLastErrors());
|
||||
return ($datetime !== false) && ($datetime->getLastErrors() !== false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue