From 7e8a6335ae2f0ecf8052ae01433cf6e8ae555fe8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 6 Aug 2024 05:47:41 +0000 Subject: [PATCH] Fix the datetime of the last cron execution --- src/Module/Stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ], ],