Skip to content

Commit

Permalink
smarty API: Improve catch 4f1c59b
Browse files Browse the repository at this point in the history
  • Loading branch information
ophian committed Jul 29, 2024
1 parent 9597932 commit 3807542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions_smarty.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3807542

Please sign in to comment.