From 9b41aa1f63ba380ead8f6f5eadd42b17c40d6558 Mon Sep 17 00:00:00 2001 From: j-t-s Date: Wed, 31 Jul 2024 13:06:35 -0400 Subject: [PATCH] Update TimeHelper.php to Respect Timezone --- src/View/Helper/TimeHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/TimeHelper.php b/src/View/Helper/TimeHelper.php index fbed3a2..5326e5a 100644 --- a/src/View/Helper/TimeHelper.php +++ b/src/View/Helper/TimeHelper.php @@ -38,7 +38,7 @@ public function userFormat($date, ?string $format = null, $invalid = false, $tim } $date->setTimezone($timezone); - return $date->i18nFormat($format); + return $date->i18nFormat($format, $timezone); } catch (Exception $e) { if ($invalid === false) { throw $e;