diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 9d2d3096e..82dfd0dbd 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -823,7 +823,7 @@ function serendipity_smarty_formatTime($timestamp, $format, $useOffset = true, $ try { $dateTime = \DateTime::createFromFormat('Ymd|', $timestamp); $timestamp = $dateTime->getTimestamp(); - } catch (Exception $e) { + } catch (\Throwable $t) { return $timestamp; } }