Update the date shown in audit logs to use and display the server time zone
What does this MR do and why?
Changes the display of dates in audit event tables to:
- Use the server time zone, and
- Show the time zone.
This was discussed in #242014 (closed). Note that there didn't seem to be consensus about exactly how to display the time zone, and whether to do it on the frontend or backend. I think this change is a good first step to solve the problem for most customers reporting the issue (myself included!).
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Ensure a project has an audit event, or create one
- View the project's audit event list, like
http://127.0.0.1:3000/flightjs/Flight/-/audit_events
- Note the 'Date' column should show the server's time zone at the end (for example, 'UTC'). The date shown should also be in this time zone.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tally Tarik