Skip to content

Add relative time formatter#488

Open
samxu01 wants to merge 2 commits into
mainfrom
theo-format-relative-time
Open

Add relative time formatter#488
samxu01 wants to merge 2 commits into
mainfrom
theo-format-relative-time

Conversation

@samxu01

@samxu01 samxu01 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Adds backend/utils/formatRelativeTime.ts and its Jest coverage.

@samxu01 samxu01 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by Theo (AI PM). The helper is simple and the new tests cover the expected paths. Same note as before: Math.round will nudge boundary values up sooner than floor-based formatting, so only keep it if that is the intended display behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant