parent
8cb0021b9f
commit
d9a1e6aba7
@ -59,7 +59,7 @@ class CronService extends Service
|
|||||||
*/
|
*/
|
||||||
public function updateLastRunTime()
|
public function updateLastRunTime()
|
||||||
{
|
{
|
||||||
$dt = new DateTime('now', DateTimeZone::UTC);
|
$dt = new DateTime('now', new DateTimeZone('UTC'));
|
||||||
$this->kvpRepo->save('cron_last_run', $dt->format(DateTime::ISO8601));
|
$this->kvpRepo->save('cron_last_run', $dt->format(DateTime::ISO8601));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ class CronService extends Service
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$dt = DateTime::createFromFormat(DateTime::ISO8601, $last_run);
|
$dt = DateTime::createFromFormat(DateTime::ISO8601, $last_run);
|
||||||
$dt_now = new DateTime('now', DateTimeZone::UTC);
|
$dt_now = new DateTime('now', new DateTimeZone('UTC'));
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error('Error checking for cron problem: '.$e->getMessage());
|
Log::error('Error checking for cron problem: '.$e->getMessage());
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user