]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use relative time for cron status
authorJakob Sack <mail@jakobsack.de>
Sat, 28 Feb 2015 20:09:25 +0000 (21:09 +0100)
committerJakob Sack <mail@jakobsack.de>
Sat, 28 Feb 2015 20:09:25 +0000 (21:09 +0100)
settings/templates/admin.php

index a82d5ee8545a211f4f14fb86b2eaebeccd367f8b..1de1e2851b76380025bd33e9d657ed7ba4fbf701 100644 (file)
@@ -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>