jokerzsd opened a new pull request, #4228:
URL: https://github.com/apache/rocketmq-dashboard/pull/4228

   ## Summary
   
   Fix the query history drawer rendering UTC timestamps as browser-local time.
   
   ## Problem
   
   `MessageQueryHistoryDrawer.formatTime` used `toLocaleString()`, which treats 
the offset-less UTC `LocalDateTime` values from `QueryHistoryService` as 
browser-local time, shifting displayed timestamps by the viewer offset. Same 
class of bug as the alert rule `lastTriggered` display issue (#4174).
   
   ## Fix
   
   Use the existing `formatUtcDateTime` helper, which appends `Z` to 
offset-less strings so they are parsed as UTC.
   
   ## Test plan
   
   `cd web && npx tsc -b` passes.
   
   Fixes #4221


-- 
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]

Reply via email to