From 93bed9c1c282fdff6064b8d7de7eee47c8ce1314 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 18 Aug 2022 04:19:09 +0000 Subject: [PATCH] Prevent invalid dates --- lib/Db/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/Util.php b/lib/Db/Util.php index 84fc1d8e..5fad178a 100644 --- a/lib/Db/Util.php +++ b/lib/Db/Util.php @@ -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(); } }