Commit 7a5e8c62 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

fix() : converting date to dateTime to put UTC timezone during a log search

parent cad04231
Pipeline #9393 failed with stages
......@@ -75,6 +75,11 @@ class log implements archiveDescriptionInterface
$sortBy = ">fromDate",
$maxResults = null
) {
$fromDate = \laabs::newDateTime($fromDate);
$toDate = \laabs::newDateTime($toDate);
$fromDate->setTimezone(new \DateTimeZone('UTC'));
$toDate->setTimezone(new \DateTimeZone('UTC'));
list($queryParams, $queryString) = $this->queryBuilder($archiveId, $type, $fromDate, $toDate, $processName, $processId);
$logs = $this->sdoFactory->find(
......
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