summaryrefslogtreecommitdiff
path: root/classes/timehelper.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-11 21:33:12 +0000
committerwn_ <[email protected]>2021-11-11 21:33:12 +0000
commit728a71150a6e63dafeae311e591c5b43ce4e317e (patch)
treebf321f311abee5fe2f8a54a1d46f387ebb968191 /classes/timehelper.php
parent58ea0d43390ce85db10f6b616ff8775b06815dd4 (diff)
Fix 'TimeHelper::make_local_datetime()' (null is allowed).
Diffstat (limited to 'classes/timehelper.php')
-rw-r--r--classes/timehelper.php2
1 files changed, 1 insertions, 1 deletions
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'];