From 728a71150a6e63dafeae311e591c5b43ce4e317e Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 11 Nov 2021 21:33:12 +0000 Subject: [PATCH] Fix 'TimeHelper::make_local_datetime()' (null is allowed). --- classes/timehelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/timehelper.php b/classes/timehelper.php index e66f82f90..453ee0cee 100644 --- a/classes/timehelper.php +++ b/classes/timehelper.php @@ -21,7 +21,7 @@ class TimeHelper { } } - static function make_local_datetime(string $timestamp, bool $long, int $owner_uid = null, + static function make_local_datetime(?string $timestamp, bool $long, int $owner_uid = null, bool $no_smart_dt = false, bool $eta_min = false): string { if (!$owner_uid) $owner_uid = $_SESSION['uid'];