mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 08:42:14 -04:00
Fix day-separator formatter
Ensure the separator is added in the correct position for any timezone and the format adjusts to the configured Locale
This commit is contained in:
parent
a83b6a3019
commit
2431a1aa97
1 changed files with 2 additions and 5 deletions
|
|
@ -63,11 +63,8 @@ class HistoryObjectList extends ObjectList
|
|||
{
|
||||
$formatter = new IntlDateFormatter(
|
||||
Locale::getDefault(),
|
||||
IntlDateFormatter::NONE,
|
||||
IntlDateFormatter::NONE,
|
||||
'UTC',
|
||||
IntlDateFormatter::GREGORIAN,
|
||||
'MMM d, yyyy'
|
||||
IntlDateFormatter::MEDIUM,
|
||||
IntlDateFormatter::NONE
|
||||
);
|
||||
|
||||
$this->on(self::BEFORE_ITEM_ADD, function ($item, $data) use ($formatter) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue