- first parameter can be null
This commit is contained in:
Roland Häder 2022-09-11 22:46:40 +02:00
parent bbe05f523f
commit 66b9cace9f
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -311,7 +311,7 @@ class Temporal
* *
* @return string with relative date * @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'; $localtime = $posted_date . ' UTC';