From: Michael Date: Tue, 6 Aug 2024 05:47:41 +0000 (+0000) Subject: Fix the datetime of the last cron execution X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e8a6335ae2f0ecf8052ae01433cf6e8ae555fe8;p=friendica.git Fix the datetime of the last cron execution --- diff --git a/src/Module/Stats.php b/src/Module/Stats.php index 9e77fc65e9..b297b2a284 100644 --- a/src/Module/Stats.php +++ b/src/Module/Stats.php @@ -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'), ], ],