Skip to content

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:

  1. Use the server time zone, and
  2. 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
Screenshot_2022-10-07_at_12-04-05_Audit_Events___Flightjs___Flight___GitLab Screenshot_2022-10-07_at_12-02-47_Audit_Events___Flightjs___Flight___GitLab

How to set up and validate locally

  1. Ensure a project has an audit event, or create one
  2. View the project's audit event list, like http://127.0.0.1:3000/flightjs/Flight/-/audit_events
  3. 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.

Edited by Tally Tarik

Merge request reports

Loading