Skip to content

Commit 32056a0

Browse files
Jozef PistejRastusik
authored andcommitted
fix(date-formatter): add default IntlDateFormatter construct parameters
1 parent a70fa6f commit 32056a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Bridge/Log/SymfonyAccessLogDataMap.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,11 @@ public function getRequestTime(string $format): string
318318
if ($icuFormat !== $this->dateFormatterIcuFormat) {
319319
$this->dateFormatter = new IntlDateFormatter(
320320
null,
321-
timezone: date_default_timezone_get(),
322-
pattern: $icuFormat
321+
IntlDateFormatter::FULL,
322+
IntlDateFormatter::FULL,
323+
date_default_timezone_get(),
324+
null,
325+
$icuFormat
323326
);
324327
$this->dateFormatterIcuFormat = $icuFormat;
325328
}

0 commit comments

Comments
 (0)