Fix the datetime of the last cron execution

This commit is contained in:
Michael 2024-08-06 05:47:41 +00:00
parent bdf95e8305
commit 7e8a6335ae

View 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'),
],
],