RockteMQ-AI commented on issue #4221: URL: https://github.com/apache/rocketmq-dashboard/issues/4221#issuecomment-5632184646
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the described codebase. **Root Cause:** `MessageQueryHistoryDrawer.formatTime` uses `new Date(value).toLocaleString()`, which interprets the offset-less `LocalDateTime` string (stamped by `Clock.systemUTC()`) as browser-local time, causing a timezone shift in the displayed timestamp. **Impact:** Query history timestamps are displayed incorrectly for users in non-UTC timezones. **Severity:** Medium — affects usability of the query history feature; no data loss. **Fix path:** Use the existing `formatUtcDateTime` helper from `web/src/utils/format.ts`, which correctly appends `Z` for offset-less UTC strings and formats in the viewer's timezone. This is consistent with the fix pattern applied in #4174/#4199. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
