From c73b291cf4348eb54e12d25bae994ce3bd99f5f6 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Fri, 26 Sep 2014 15:57:00 +0200 Subject: [PATCH] Add a better time format for downtime --- .../application/views/scripts/list/downtimes.phtml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/list/downtimes.phtml b/modules/monitoring/application/views/scripts/list/downtimes.phtml index 247bf61c9..b0755a974 100644 --- a/modules/monitoring/application/views/scripts/list/downtimes.phtml +++ b/modules/monitoring/application/views/scripts/list/downtimes.phtml @@ -29,7 +29,16 @@ is_in_effect ? $this->translate('Expires') : $this->translate('Starts'); ?>
- prefixedTimeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start); ?> + 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') + ); + ?> service)): ?>