1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 06:06:40 +02:00

Use dateFormat in HtmlFormatter

This commit is contained in:
Matthieu Verrecchia
2014-08-05 13:44:24 +02:00
parent 12545cda2f
commit 3d0314ce04

View File

@@ -83,7 +83,7 @@ class HtmlFormatter extends NormalizerFormatter
$output .= '<table cellspacing="1" width="100%">';
$output .= $this->addRow('Message', (string) $record['message']);
$output .= $this->addRow('Time', $record['datetime']->format('Y-m-d\TH:i:s.uO'));
$output .= $this->addRow('Time', $record['datetime']->format($this->dateFormat));
$output .= $this->addRow('Channel', $record['channel']);
if ($record['context']) {
$output .= $this->addRow('Context', $this->convertToString($record['context']));