Prevent invalid dates

pull/37/head
Varun Patil 2022-08-18 04:19:09 +00:00
parent 7abad094d0
commit 93bed9c1c2
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Util {
// Check if found something
if (!empty($dt)) {
$dt = \DateTime::createFromFormat('Y:m:d H:i:s', $dt);
if ($dt) {
if ($dt && $dt->getTimestamp() > -5364662400) { // 1800 A.D.
return $dt->getTimestamp();
}
}