Use timeUntil() for the comment expiration date and time

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-10 13:20:41 +02:00
parent dc757e3b19
commit 1dcb3b3ad2
1 changed files with 3 additions and 4 deletions

View File

@ -70,10 +70,9 @@
?>
<br>
<?= $comment->expiration ? sprintf(
$this->translate('This comment expires on %s at %s.'),
date('d.m.y', $comment->expiration),
date('H:i', $comment->expiration)
) : $this->translate('This comment does not expire.'); ?>
$this->translate('This comment expires %s.'),
$this->timeUntil($comment->expiration)
) : $this->translate('This comment does not expire.'); ?>
</td>
<?php if (isset($delCommentForm)): // Form is unset if the current user lacks the respective permission ?>
<td style="width: 2em" data-base-target="self">