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
Updated by François ARMAND about 2 months ago
- Category set to Web - Maintenance
- Priority changed from To review to 1 (highest)
Updated by François ARMAND about 2 months ago
- Assignee set to Clark ANDRIANASOLO
Updated by Clark ANDRIANASOLO about 2 months ago
- Status changed from New to In progress
Updated by Clark ANDRIANASOLO about 2 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from Clark ANDRIANASOLO to Raphael GAUTHIER
- Pull Request set to https://github.com/Normation/rudder/pull/5963
Updated by Clark ANDRIANASOLO about 1 month ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|caf5b4fa08e1afc7e38c8a21a1ea80b40ee8c359.
Updated by Félix DALLIDET about 1 month ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ about 1 month ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 8.1.8 and 8.2.1 which were released today.