]> source.dussan.org Git - nextcloud-server.git/commitdiff
Format the datetime for last run in ATOM format
authorCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 27 Jun 2022 13:28:01 +0000 (15:28 +0200)
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>
Mon, 11 Jul 2022 09:46:23 +0000 (09:46 +0000)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
core/Command/Background/ListCommand.php

index d29ac38a7bf0dc830fd578ec31e149173c236db1..bdd45f3a25f04a6e701b16ed1bbcb7bf43f61d5d 100644 (file)
@@ -77,7 +77,7 @@ class ListCommand extends Base {
                        fn ($job) => [
                                'id' => $job->getId(),
                                'class' => get_class($job),
-                               'last_run' => $job->getLastRun(),
+                               'last_run' => date(DATE_ATOM, $job->getLastRun()),
                                'argument' => json_encode($job->getArgument()),
                        ],
                        $jobs