mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +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(
|
$formatter = new \IntlDateFormatter(
|
||||||
self::getSensibleLocale(),
|
self::getSensibleLocale(),
|
||||||
\IntlDateFormatter::NONE,
|
\IntlDateFormatter::NONE,
|
||||||
@@ -76,6 +76,8 @@ trait StrftimeTrait
|
|||||||
$format
|
$format
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// datefmt_set_timezone($formatter, $timezone);
|
||||||
|
|
||||||
return $formatter->format($datetime);
|
return $formatter->format($datetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user