From fe3c2597d897e815bdb151122f942aa1bfa65eb3 Mon Sep 17 00:00:00 2001 From: camer0n Date: Fri, 3 Nov 2023 16:51:11 -0700 Subject: [PATCH] Issue #5096 - possible fix for older versions of PHP. --- e107_handlers/Shims/Internal/StrftimeTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/Shims/Internal/StrftimeTrait.php b/e107_handlers/Shims/Internal/StrftimeTrait.php index 5d062a6eb1..2245e4df05 100644 --- a/e107_handlers/Shims/Internal/StrftimeTrait.php +++ b/e107_handlers/Shims/Internal/StrftimeTrait.php @@ -71,12 +71,12 @@ protected static function date_format($datetime, $format) self::getSensibleLocale(), \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, - $timezone, // More accurate timezone. @see https://stackoverflow.com/questions/31707395/why-php-intldateformatter-returns-wrong-date-1-hour + null, // More accurate timezone. @see https://stackoverflow.com/questions/31707395/why-php-intldateformatter-returns-wrong-date-1-hour null, $format ); - // datefmt_set_timezone($formatter, $timezone); + datefmt_set_timezone($formatter, $timezone); return $formatter->format($datetime); }