Skip to content

Apply user timezone to date headers in commits list

What does this MR do and why?

Contributes to #417311 (closed)

Problem

We use a system timezone for date headers in commits list page. It leads to situations when users see a date from past or future if they use a custom non-UTC timezone.

Solution

Apply user timezone to date headers.

Screenshots or screen recordings

http://127.0.0.1:3000/gitlab-org/gitlab-test/-/commits/master

Before (date header without timezone applied) After (with timezone from user's profile)
Screenshot_2023-07-14_at_15.14.57 Screenshot_2023-07-14_at_15.14.34

My timezone is UTC+2.

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 Vasilii Iakliushin

Merge request reports