Skip to content

fix(wallet): parse history timestamps without time zone as UTC - #1543

Open
CapThunder19 wants to merge 1 commit into
joinmarket-webui:develfrom
CapThunder19:fix/history-timestamp-timezone
Open

CapThunder19 wants to merge 1 commit into
joinmarket-webui:develfrom
CapThunder19:fix/history-timestamp-timezone

Conversation

@CapThunder19

Copy link
Copy Markdown
Contributor

What does this PR do?

JoinMarket NG writes history.csv timestamps without a timezone (e.g. 2026-10-14T10:38:39.123456). The transaction history parsed them with new Date(), which treats them as browser-local time. The Earn report treated them as UTC. So whenever the browser isn't on UTC, the same coinjoin showed different times on the two pages, off by the browser's UTC offset.

This adds a small parseHistoryTimestamp helper in src/lib/ that both views now use. It respects an explicit offset when one is present and treats everything else as UTC, which matches what the Earn report already did. If NG starts writing offsets later, this keeps working without changes.

Tests run under non-UTC zones using the existing withTimeZone helper. The new TxHistoryTable test fails on devel and passes with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

Tx history and Earn report show different times for the same coinjoin

2 participants