diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-12 14:23:53 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-12 15:16:52 +0100 |
commit | 44289ff134e9387bf2bce70f1d716b0e924f2021 (patch) | |
tree | d3c62559bb1769b8ff9d1c62cfbf8351c42a0b66 /settings | |
parent | af89db3407e599ea47d62a851759fa929cdd4713 (diff) | |
download | nextcloud-server-44289ff134e9387bf2bce70f1d716b0e924f2021.tar.gz nextcloud-server-44289ff134e9387bf2bce70f1d716b0e924f2021.zip |
Use proper method to format absolute timestamp
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/templates/settings/admin/server.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/templates/settings/admin/server.php b/settings/templates/settings/admin/server.php index 4350a7105c8..d467577f610 100644 --- a/settings/templates/settings/admin/server.php +++ b/settings/templates/settings/admin/server.php @@ -159,7 +159,9 @@ <p class="cronlog inlineblock"> <?php if ($_['lastcron'] !== false): $relative_time = relative_modified_date($_['lastcron']); - $absolute_time = OC_Util::formatDate($_['lastcron']); + + $formatter = \OC::$server->getDateTimeFormatter(); + $absolute_time = $formatter->formatDateTime($_['lastcron'], 'long', 'long'); if (time() - $_['lastcron'] <= 3600): ?> <span class="status success"></span> <span class="crondate" title="<?php p($absolute_time);?>"> |