Skip to content

EVEREST-1948 | fix bad component age display #1272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

fabio-silva
Copy link
Collaborator

@fabio-silva fabio-silva commented Apr 2, 2025

EVEREST-1948 Powered by Pull Request Badge

Moved from date-fns' formatDistanceToNowStrict to formatDuration.
Problem: formatDistanceToNowStrict has well defined intervals that might be misleading to users.
For example, a date from 89m ago reads as "1 hour", but 91m reads already as "2 hours", as per docs: https://date-fns.org/v4.1.0/docs/formatDistanceToNow

@fabio-silva fabio-silva requested a review from a team as a code owner April 2, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants