Use timeSince() for the last status change in the host's detail view

Instead of using prefixedTimeSince() which will be removed.

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-15 15:02:27 +02:00
parent 291c6bf167
commit b84452140c
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ use Icinga\Module\Monitoring\Object\Host;
<tr class="state <?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : ''; ?>">
<td class="state">
<strong><?= Host::getStateText($object->host_state, true); ?></strong><br>
<?= $this->prefixedTimeSince($object->host_last_state_change, true); ?>
<?= $this->timeSince($object->host_last_state_change); ?>
</td>
<td>
<strong><?= $this->escape($object->host_display_name); ?></strong>
@ -24,4 +24,4 @@ use Icinga\Module\Monitoring\Object\Host;
<?= $this->render('partials/host/statusicons.phtml'); ?>
</td>
</tr>
</table>
</table>