Skip to content
Snippets Groups Projects
Commit 556c6eca authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Use OC_Util::formatDate()

parent c5440fa1
Branches
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ if (!$_['internetconnectionworking']) { ...@@ -157,7 +157,7 @@ if (!$_['internetconnectionworking']) {
<?php if ($_['cron_log']): ?> <?php if ($_['cron_log']): ?>
<p class="cronlog inlineblock"> <p class="cronlog inlineblock">
<?php if ($_['lastcron'] !== false): <?php if ($_['lastcron'] !== false):
$human_time = date('Y-m-d H:i', $_['lastcron']) . " UTC"; $human_time = OC_Util::formatDate($_['lastcron']) . " UTC";
if (time() - $_['lastcron'] <= 3600): ?> if (time() - $_['lastcron'] <= 3600): ?>
<span class="cronstatus success"></span> <span class="cronstatus success"></span>
<?php p($l->t("Last cron was executed at %s.", array($human_time))); <?php p($l->t("Last cron was executed at %s.", array($human_time)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment