From f9b2291c28e7036276134aac84ec456fbd297d30 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 15 Dec 2024 18:14:42 +0000 Subject: Don't bother passing unused arguments to 'TimeHelper::make_local_datetime()'. There's no point in passing '$long' unless '$no_smart_dt' is set to 'true'. --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 5e906a977..20c986265 100644 --- a/include/functions.php +++ b/include/functions.php @@ -253,7 +253,7 @@ } /** @deprecated by TimeHelper::make_local_datetime() */ - function make_local_datetime(string $timestamp, bool $long, ?int $owner_uid = null, bool $no_smart_dt = false, bool $eta_min = false): string { + function make_local_datetime(string $timestamp, bool $long = false, ?int $owner_uid = null, bool $no_smart_dt = false, bool $eta_min = false): string { return TimeHelper::make_local_datetime($timestamp, $long, $owner_uid, $no_smart_dt, $eta_min); } -- cgit v1.2.3-54-g00ecf