mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
edd386e14b
commit
de9be044b3
@ -24,6 +24,13 @@ $this->addHelperFunction('formatDateTime', function ($dateTime) {
|
||||
return DateFormatter::formatDateTime($dateTime);
|
||||
});
|
||||
|
||||
$this->addHelperFunction('formatDuration', function ($seconds) {
|
||||
if (! $seconds) {
|
||||
return '';
|
||||
}
|
||||
return DateFormatter::formatDuration($seconds);
|
||||
});
|
||||
|
||||
$this->addHelperFunction('formatTime', function ($time) {
|
||||
if (! $time) {
|
||||
return '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user