Skip to content

Show date when relative time is over a year old

What does this MR do and why?

This prevents confusing relative times since a year is a long period and a relative time like "a year ago" could mean 1 year and 1 day or 1 year and 364 days.

References

Related to #18607 (closed)

Screenshots or screen recordings

Issue list and other places should show the date instead of the relative time:

Screenshot_2025-06-02_at_11.35.23_AM

Repository list should not be affected:

Screenshot_2025-06-02_at_11.35.59_AM

How to set up and validate locally

  1. Enable the show_date_when_relative_time_over_a_year feature flag
  2. Check anywhere we render relative times. These should show as dates when over a year except for the repository file list.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports

Loading