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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user