mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Issue #5096 - possible fix for older versions of PHP.
This commit is contained in:
parent
e0554f6f17
commit
fe3c2597d8
@ -71,12 +71,12 @@ trait StrftimeTrait
|
|||||||
self::getSensibleLocale(),
|
self::getSensibleLocale(),
|
||||||
\IntlDateFormatter::NONE,
|
\IntlDateFormatter::NONE,
|
||||||
\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,
|
null,
|
||||||
$format
|
$format
|
||||||
);
|
);
|
||||||
|
|
||||||
// datefmt_set_timezone($formatter, $timezone);
|
datefmt_set_timezone($formatter, $timezone);
|
||||||
|
|
||||||
return $formatter->format($datetime);
|
return $formatter->format($datetime);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user