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

   ## Summary
   
   Fix the alert rule "最近触发时间" (last-triggered) column rendering a UTC 
timestamp as browser-local time.
   
   ## Problem
   
   The backend stamps `lastTriggered` as a UTC `LocalDateTime` without an 
offset suffix (e.g. `2026-08-23T23:30:00`). The rule page rendered it with 
`formatDateTime`, which parses offset-less ISO strings with `new Date(...)` as 
browser-local time. A rule that fired at 23:30 UTC showed 23:30 in every 
timezone.
   
   ## Fix
   
   Use `formatUtcDateTime` (already used by the system-alert page), which 
appends `Z` to offset-less strings so they are parsed as UTC. This also covers 
`/ops/business-alerts`, which reuses the same `AlertsPage` component.
   
   ## Test plan
   
   `cd web && npx tsc -b` passes.
   
   Fixes #4174


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