mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Use relative time for cron status
This commit is contained in:
parent
42f6448da2
commit
6e906fc4d4
1 changed files with 3 additions and 3 deletions
|
|
@ -236,13 +236,13 @@ if ($_['suggestedOverwriteCliUrl']) {
|
|||
<?php if ($_['cron_log']): ?>
|
||||
<p class="cronlog inlineblock">
|
||||
<?php if ($_['lastcron'] !== false):
|
||||
$human_time = OC_Util::formatDate($_['lastcron']);
|
||||
$human_time = relative_modified_date($_['lastcron']);
|
||||
if (time() - $_['lastcron'] <= 3600): ?>
|
||||
<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 %s.", array($human_time)));
|
||||
else: ?>
|
||||
<span class="cronstatus error"></span>
|
||||
<?php p($l->t("Last cron was executed at %s. This is more than an hour ago, something seems wrong.", array($human_time)));
|
||||
<?php p($l->t("Last cron was executed %s. Something seems wrong.", array($human_time)));
|
||||
endif;
|
||||
else: ?>
|
||||
<span class="cronstatus error"></span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue