Bug #25720
closedTechnical and event logs get log from browser timezone instead of server timezone
Description
In a node details page, the "Technical logs" tab is initialized with the last 1000 server logs, it works fine until we get logs from specific dates : the default start and end dates are one computed with the timezone of the browser (and are displayed without any timezone information), but when getting logs, the returned table shows elements from the same time as queried but with the server timezone.
This is misleading when the user timezone is different from the browser timezone : my server is on the UTC+3 timezone, but my browser is on the UTC+2 timezone, and the default time is therefore one hour behind when opening the technical logs tabs, when I click on the "Get logs" right when arriving on the page.
When I arrive on the page :
But I get data before 14:40:00+0300 when I click on the button.
Also, when I refresh the table after changing the start and end times and getting logs, the table displays the last 1000 server logs back.
The same happens in the event logs page.
The default dates should either always be on the server timezone or the displayed information in the tables in the browser timezone.
Files