1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Issue #5096 - possible fix for older versions of PHP.

This commit is contained in:
camer0n
2023-11-03 16:36:14 -07:00
parent 45661f44c3
commit e0554f6f17

View File

@@ -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);
}