Skip to content

Add "over" when timestamp is more than a year ago

Heinrich Lee Yu requested to merge 18607-timeago-text into master

What does this MR do and why?

Add "over" when timestamp is more than a year ago

timeago does a floor function and when it reaches years the time range is large so it can be confusing to users.

For example, 2 years and 6 months is shown as "2 years ago". Changing this to "over 2 years ago" makes it clearer.

MR acceptance checklist

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

Screenshots or screen recordings

This affects everywhere we show relative time:

  • Issue header Screenshot_2024-02-15_at_12.48.20_PM
  • Project list Screenshot_2024-02-15_at_12.47.46_PM

Related to #18607

Edited by Heinrich Lee Yu

Merge request reports