[Bug] DLQ timestamps shift with the JVM zone while every other zoneless datetime is UTC
Maintainers usually reply within 3 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
Research direction
Read the conversions at provider/apache/RocketMQDLQProvider.java:157-158 and instance/dlq/DLQMessageExcelRow.java:59-60. Check how each timestamp is converted, then verify both use UTC; done means DLQ timestamps no longer depend on the JVM's default zone and align with the app-wide zoneless-UTC contract.
Written by the indexing model from the issue text.
Description
Problem
Every zoneless datetime in the ops surfaces is written as UTC — alert lifecycle events (NativeAlertProcessor: LocalDateTime.ofInstant(collectedAt, ZoneOffset.UTC)), silence windows (AlertSilenceService), notification outbox times (utcNow()), session timestamps (AuthService), and query history (Clock.systemUTC()). The frontend confirms the contract: those surfaces render with formatUtcDateTime, which appends Z to zoneless strings. The default JDBC URL even pins serverTimezone=UTC.
The two DLQ paths are the sole outliers using ZoneId.systemDefault():
provider/apache/RocketMQDLQProvider.java:157-158— the group list'slastEnqueueTime("最近入队时间").instance/dlq/DLQMessageExcelRow.java:59-60— the Excel export's "Store Time" column.
On any deployment whose JVM zone is not UTC (typical bare-metal CN installs, UTC+8) with an operator in another zone, the DLQ timestamps are shifted relative to every other time in the console: an alert and a dead-letter message from the same instant display times 8 hours apart. The DLQ page also renders these with the plain formatDateTime (no zone label), so the shift is invisible rather than explained.
Expected Behavior
Both conversions use ZoneOffset.UTC, aligning the DLQ surfaces with the app-wide zoneless-UTC contract. On a UTC-JVM deployment nothing changes; on non-UTC JVMs the DLQ times now agree with the alert/silence/session times and with the Excel export of every other surface.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 718
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 215
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/rocketmq-dashboard
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
apache/rocketmq-dashboard#5672 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/rocketmq-dashboard#5644 · 1 comment ·
Maintainers usually reply within 3 days
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 47/100
apache/rocketmq-dashboard#7398 ·
Maintainers usually reply within 3 days
-
[Feature]Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 8/100
apache/rocketmq-dashboard#7376 ·
Maintainers usually reply within 3 days
-
[Bug] Broker config dialog is pre-filled with fabricated defaults and submits them to every brokerOpen
Difficulty 3/5 1-2 days Newbie friendliness 25/100
apache/rocketmq-dashboard#5897 ·
Maintainers usually reply within 3 days
All issues in apache/rocketmq-dashboard
Similar issues
-
bug build failed
Difficulty 1/5 Under an hour Newbie friendliness 91/100
objectionary/eo#9852 · 1 comment ·
Maintainers usually reply within 2 days
-
finsim-core good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Require-Capability osgi.ee still says JavaSE 1.8 but classes are compiled for Java 11Possibly taken @arturobernalg claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eclipse-ee4j/angus-mail#232 ·
Maintainers usually reply within 3 days
-
bug status: needs triage
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
LawnchairLauncher/lawnchair#7511 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
ahmedmmordi/store-app#11 ·