Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
7a5e8c62
Commit
7a5e8c62
authored
Sep 18, 2020
by
Arnaud Pauget
Browse files
fix() : converting date to dateTime to put UTC timezone during a log search
parent
cad04231
Pipeline
#9393
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/recordsManagement/Controller/log.php
View file @
7a5e8c62
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment