monitoring: Fix date and time formatting for comments

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-22 10:22:14 +02:00
parent da97523fa0
commit 873bc22a1e

View File

@ -50,7 +50,7 @@
<tr>
<th><?= $this->translate('Created') ?></th>
<td><?= date('d.m.y H:i' ,$this->escape($this->comment->timestamp)) ?></td>
<td><?= $this->formatDateTime($this->comment->timestamp) ?></td>
</tr>
<tr>
@ -58,8 +58,8 @@
<td>
<?= $this->comment->expiration ? sprintf(
$this->translate('This comment expires on %s at %s.'),
date('d.m.y', $this->comment->expiration),
date('H:i', $this->comment->expiration)
$this->formatDate($this->comment->expiration),
$this->formatTime($this->comment->expiration)
) : $this->translate('This comment does not expire.');
?>
</td>