Require time output for dowtime end/expire times
This commit is contained in:
parent
b5bfd0c620
commit
0fb034b663
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue