Skip to content
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

fix: use Intl.DateTimeFormat for timestamps #277

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

rocketfren
Copy link
Contributor

Sorts out the time formatting with 24-hour locales which lack AM/PM symbol.

On 12h locale, "10:11:00 PM" was sliced to "10:11 PM" (hh:mm a)
On 24h locale, "22:11:00" was sliced to "22 00" (hh ss)

Intl.DateTimeFormat has the same coverage as Date.toLocaleString. Format is a bit different but.. 🤷‍♂️

Copy link

vercel bot commented Jan 23, 2024

@rocketfren is attempting to deploy a commit to the helius Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xray-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 9:57pm

Copy link
Contributor

@0xIchigo 0xIchigo left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

@0xIchigo 0xIchigo added this pull request to the merge queue Jan 23, 2024
Merged via the queue into helius-labs:dev with commit f4026fb Jan 23, 2024
2 of 3 checks passed
@rocketfren rocketfren deleted the r/fix-date-formats branch January 23, 2024 23:23
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.

2 participants