fix(ui): transactions table time column shows precise local time (rant 2026-08-24T12:38:44) - #139
Merged
Merged
Conversation
…t 2026-08-24T12:38:44)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Transactions table time column now shows precise local time (
YYYY-MM-DD HH:MM:SS, e.g.2026-08-24 12:36:12) instead of relative time ("3 小时前"), per rant 2026-08-24T12:38:44.fmtPrecise(s)helper: parses backend UTC ISO / legacyYYYY-MM-DD HH:MM:SS(treated as UTC, same convention astimeAgo) and formats as local time to the second; non-standard strings (e.g. visitor mockMM-DD HH:mm) pass through unchangedtimeCell(s, precise): withprecise=truethe exact time becomes the main cell text and the relative time ("3 小时前" / "昨天") moves to thetitlehover tooltip (swapped)timecolumn (TX_COLUMNS) uses precise mode; othertimeCellusers (market listing 上架时间, settings 最近使用) keep relative display unchangedCache-bust
20260824-6→20260824-7.Tests
cargo test146/146,cargo fmt --check,cargo clippygreennode --check+ fmtPrecise smoke test: UTC→CST conversion, milliseconds strip, legacy format, mock passthrough, empty — all pass