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:
Bastian Lederer 2026-03-18 12:39:27 +01:00
parent a83b6a3019
commit 2431a1aa97

View file

@ -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) {