10000 - · symfony/symfony@1421d73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1421d73

Browse files
committed
-
1 parent 6429067 commit 1421d73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ public function __invoke(array $record)
3636
if ($record['datetime'] instanceof \DateTimeInterface) {
3737
$timestamp = $record['datetime']->getTimestamp();
3838
$timestampRfc3339 = $record['datetime']->format(\DateTimeInterface::RFC3339_EXTENDED);
39-
} elseif (false !== strtotime($record['datetime'])) {
40-
$timestamp = strtotime($record['datetime']);
41-
$timestampRfc3339 = (new \DateTimeImmutable())->setTimestamp($timestamp)->format(\DateTimeInterface::RFC3339_EXTENDED);
39+
} elseif (false !== $timestamp = strtotime($record['datetime'])) {
40+
$timestampRfc3339 = (new \DateTimeImmutable($record['datetime']))->format(\DateTimeInterface::RFC3339_EXTENDED);
4241
}
4342

4443
$this->records[$hash][] = [

0 commit comments

Comments
 (0)
0