Skip to content

fix: show future timestamps as locale dates - #3339

Open
chetansoni1569 wants to merge 1 commit into
felladrin:mainfrom
chetansoni1569:fix/future-relative-time
Open

chetansoni1569 wants to merge 1 commit into
felladrin:mainfrom
chetansoni1569:fix/future-relative-time

Conversation

@chetansoni1569

Copy link
Copy Markdown
Contributor

Description

Fixes #3338.

The relative-time formatter returned Just now for any timestamp in the future because negative elapsed time matched the minutes < 1 bucket. It now detects future timestamps first and shows the localized date.

How to test

  1. Run npx vitest run client/modules/stringFormatters.test.ts.
  2. Run npm run test.
  3. Run npm run lint.
  4. Run git diff --name-only origin/main | npm run changelog-guard.

The full Vitest suite and lint checks pass. No UI screenshots are needed for this formatter-only change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ghfind-review ghfind-review Bot added the review: low ghfind author score; see https://ghfind.com label Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: low ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Future timestamps are shown as Just now

1 participant