Commit cad04231 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix() : convert dateTime in logScheduling

parent cf74171a
Pipeline #9391 failed with stages
......@@ -57,7 +57,8 @@ class logScheduling
{
$logScheduling = \laabs::newInstance('batchProcessing/logScheduling');
$logScheduling->logId = \laabs::newId();
$logScheduling->logDate = \laabs::newDateTime(null, 'UTC');
$logScheduling->logDate = \laabs::newDateTime();
$logScheduling->logDate->setTimezone(new \DateTimeZone('UTC'));
$logScheduling->schedulingId = $schedulingId;
$logScheduling->executedBy = $executedBy;
$logScheduling->launchedBy = $launchedBy;
......@@ -150,6 +151,9 @@ class logScheduling
$date = \laabs::newDateTime($logDate);
$maxDate = $date->shift(new \DateInterval('P1D'));
$date->setTimezone(new \DateTimeZone('UTC'));
$maxDate->setTimezone(new \DateTimeZone('UTC'));
$queryParams = [];
$queryString = [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment