Skip to content

Commit

Permalink
Add a better time format for downtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fuhr committed Sep 26, 2014
1 parent cf997e9 commit c73b291
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -29,7 +29,16 @@
<td class="state">
<strong><?= $downtime->is_in_effect ? $this->translate('Expires') : $this->translate('Starts'); ?></strong>
<br>
<?= $this->prefixedTimeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start); ?>
<?=
$this->dateTimeRenderer(
($downtime->is_in_effect ? $downtime->end : $downtime->start),
true
)->render(
$this->translate('on %s', 'datetime'),
$this->translate('at %s', 'time'),
$this->translate('in %s', 'timespan')
);
?>
</td>
<td>
<?php if (isset($downtime->service)): ?>
Expand Down

0 comments on commit c73b291

Please sign in to comment.