From: Roland Häder Date: Sun, 11 Sep 2022 20:46:40 +0000 (+0200) Subject: Changed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66b9cace9fed02774388cd20587d912e9fa64d1e;p=friendica.git Changed: - first parameter can be null --- diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index 0186b59dd6..ef87f84883 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -311,7 +311,7 @@ class Temporal * * @return string with relative date */ - public static function getRelativeDate(string $posted_date, string $format = null): string + public static function getRelativeDate(string $posted_date = null, string $format = null): string { $localtime = $posted_date . ' UTC';