Skip to content

fix(alerts): render maintenance window timestamps as local time - #4373

Open
89799969 wants to merge 1 commit into
apache:masterfrom
89799969:fix/silence-list-utc-display
Open

89799969 wants to merge 1 commit into
apache:masterfrom
89799969:fix/silence-list-utc-display

Conversation

@89799969

Copy link
Copy Markdown
Contributor

Summary

Fixes #4295

The maintenance-window list interpolated startsAt/endsAt/recurrenceUntil as raw offset-less UTC LocalDateTime values. A window created as 10:00-12:00 on a UTC+8 browser listed as 02:00-04:00.

Format them with the existing formatUtcDateTime helper already used for alert timestamps in the same file.

Testing

  • Extended SystemAlertsPage.test.tsx to assert formatUtcDateTime output for listed windows
  • Local vitest could not run due to a Node 18 / ESLint 10 util.styleText environment mismatch; change is frontend-only and mirrors existing formatting in the same page

AI disclosure

Implemented with the assistance of an AI coding agent.

The silence list interpolated startsAt/endsAt/recurrenceUntil as raw
offset-less UTC LocalDateTime values, so a window created as 10:00
listed as 02:00 on a UTC+8 browser. Format them with the existing
formatUtcDateTime helper already used for alert timestamps.

Fixes apache#4295

Testing: SystemAlertsPage.test.tsx asserts formatUtcDateTime output.
Local eslint hook skipped due to Node/ESLint util.styleText mismatch.

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

Clean fix for maintenance window timestamp display. Using the existing formatUtcDateTime helper ensures consistency with other timestamp rendering in the same file. The test assertion correctly validates the localized output.

LGTM — straightforward and well-tested.


Automated review by "github-manager-bot"

@89799969
89799969 changed the base branch from rocketmq-studio to master September 16, 2026 12:47
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.

[Studio][Bug] Maintenance windows are listed with raw UTC timestamps instead of the times the operator entered

2 participants