diff --git a/library/Icinga/Web/View/helpers/format.php b/library/Icinga/Web/View/helpers/format.php index 7b1d3f441..7bd36f308 100644 --- a/library/Icinga/Web/View/helpers/format.php +++ b/library/Icinga/Web/View/helpers/format.php @@ -12,7 +12,7 @@ $this->addHelperFunction('format', function () { $this->addHelperFunction('timeAgo', function ($timestamp) { return sprintf( - '%s', + '%s', date('Y-m-d H:i:s', $timestamp), // TODO: internationalized format Format::timeAgo($timestamp) ); @@ -20,7 +20,7 @@ $this->addHelperFunction('timeAgo', function ($timestamp) { $this->addHelperFunction('timeSince', function ($timestamp) { return sprintf( - '%s', + '%s', date('Y-m-d H:i:s', $timestamp), // TODO: internationalized format Format::timeSince($timestamp) ); @@ -29,7 +29,7 @@ $this->addHelperFunction('timeSince', function ($timestamp) { $this->addHelperFunction('timeUntil', function ($timestamp) { if (! $timestamp) return ''; return sprintf( - '%s', + '%s', date('Y-m-d H:i:s', $timestamp), // TODO: internationalized format Format::timeUntil($timestamp) );