Skip to content

Fix locale-aware timestamp formatting - #30

Open
tenaxresearchbaekhui wants to merge 2 commits into
Steller-StellarPulse-org:mainfrom
tenaxresearchbaekhui:codex/fix-leaderboard-timezone-27
Open

Fix locale-aware timestamp formatting#30
tenaxresearchbaekhui wants to merge 2 commits into
Steller-StellarPulse-org:mainfrom
tenaxresearchbaekhui:codex/fix-leaderboard-timezone-27

Conversation

@tenaxresearchbaekhui

Copy link
Copy Markdown

Summary

  • switch Unix timestamp formatting to Intl.DateTimeFormat using the user's locale by default
  • include short timezone names for date/time displays so timestamps are consistent across views
  • reuse the shared time formatter in the market activity feed instead of calling toLocaleTimeString() directly
  • add deterministic UTC coverage for the date/time helpers

Fixes #27

Validation

  • node Intl.DateTimeFormat check for the UTC date and time fixture
  • npx.cmd --yes -p typescript@5.7.3 tsc --noEmit --target ES2020 --lib ES2020,DOM --moduleResolution node frontend/src/utils/helpers.ts
  • git diff --check

Note: I could not run the full Vitest suite from a clean clone because frontend/package.json is absent even though frontend/package-lock.json exists. A temporary npx Vitest attempt failed while loading vitest.config.ts because vitest/config is not resolvable from the repo without installed project dependencies.

@Muyideen-js

Copy link
Copy Markdown
Collaborator

@tenaxresearchbaekhui File conflict

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.

[wave] Fix inconsistent timezone display in leaderboard

2 participants