]> git.mxchange.org Git - friendica.git/commitdiff
Fix the datetime of the last cron execution
authorMichael <heluecht@pirati.ca>
Tue, 6 Aug 2024 05:47:41 +0000 (05:47 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Aug 2024 05:47:41 +0000 (05:47 +0000)
src/Module/Stats.php

index 9e77fc65e9a6f83382358956d038cfd04ac61d3d..b297b2a284b56891191307d795e6c63daf517fb3 100644 (file)
@@ -83,7 +83,7 @@ class Stats extends BaseModule
                $statistics = [
                        'cron' => [
                                'lastExecution' => [
-                                       'datetime'  => DateTimeFormat::utc($this->keyValue->get('last_cron'), DateTimeFormat::JSON),
+                                       'datetime'  => date(DateTimeFormat::JSON, (int)$this->keyValue->get('last_cron')),
                                        'timestamp' => (int)$this->keyValue->get('last_cron'),
                                ],
                        ],