Require time output for dowtime end/expire times

This commit is contained in:
Eric Lippmann 2019-07-11 14:16:27 +02:00
parent b5bfd0c620
commit 0fb034b663
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ if (empty($object->comments) && ! $addLink) {
if ((bool) $downtime->is_in_effect) {
$state = sprintf(
$this->translate('expires %s', 'Last format parameter represents the downtime expire time'),
$this->timeUntil($downtime->end)
$this->timeUntil($downtime->end, false, true)
);
} else {
if ($downtime->start <= time()) {
$state = sprintf(
$this->translate('ends %s', 'Last format parameter represents the end time'),
$this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end)
$this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end, false, true)
);
} else {
if ((bool) $downtime->is_fixed) {