list/history: Use intl's default locale to format time and date

This commit is contained in:
Johannes Meyer 2024-01-09 11:26:22 +01:00
parent b370d9bd9f
commit e1479b4a6a
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ $history->limit($limit * $page);
?>
<div class="content">
<?php
$dateFormatter = new IntlDateFormatter(setlocale(LC_TIME, 0), IntlDateFormatter::FULL, IntlDateFormatter::NONE);
$dateFormatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::FULL, IntlDateFormatter::NONE);
$lastDate = null;
$flappingMsg = $this->translate('Flapping with a %.2f%% state change rate');
$rowAction = Url::fromPath('monitoring/event/show');