From e0554f6f1777bc6d2bfb414577f85c7e1582e743 Mon Sep 17 00:00:00 2001 From: camer0n Date: Fri, 3 Nov 2023 16:36:14 -0700 Subject: [PATCH] Issue #5096 - possible fix for older versions of PHP. --- e107_handlers/Shims/Internal/StrftimeTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/Shims/Internal/StrftimeTrait.php b/e107_handlers/Shims/Internal/StrftimeTrait.php index 387eb8ef0..5d062a6eb 100644 --- a/e107_handlers/Shims/Internal/StrftimeTrait.php +++ b/e107_handlers/Shims/Internal/StrftimeTrait.php @@ -66,7 +66,7 @@ trait StrftimeTrait } - $timezone = 'GMT'.date('O'); + $timezone = 'GMT'.date('P'); $formatter = new \IntlDateFormatter( self::getSensibleLocale(), \IntlDateFormatter::NONE, @@ -76,6 +76,8 @@ trait StrftimeTrait $format ); + // datefmt_set_timezone($formatter, $timezone); + return $formatter->format($datetime); }