Skip to content

fix: representation of timestamp in getTransaction rpc method#401

Merged
lgalabru merged 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/fix-tx-timestamp
Nov 7, 2025
Merged

fix: representation of timestamp in getTransaction rpc method#401
lgalabru merged 1 commit intosolana-foundation:mainfrom
sonicfromnewyoke:sonic/fix-tx-timestamp

Conversation

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

Problem

Internally, a millisecond timestamp is in use, but UI representation requires a timestamp represented in seconds, which leads to weird results in the explorer

Solution

cast milliseconds to seconds in the RPC response

Copy link
Copy Markdown
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @sonicfromnewyoke 🔥

@lgalabru lgalabru merged commit 2b0e7b4 into solana-foundation:main Nov 7, 2025
3 checks passed
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