123123213weqw opened a new pull request, #1979:
URL: https://github.com/apache/rocketmq-dashboard/pull/1979

   ## What is the purpose of the change
   
   `AliyunConverters` formatted and parsed Aliyun RocketMQ OpenAPI `yyyy-MM-dd 
HH:mm:ss` timestamps with `ZoneId.systemDefault()`. The Aliyun OpenAPI 
interprets these unzoned strings as UTC+8 (Asia/Shanghai) regardless of the 
server's zone, so on a non-UTC+8 server the message query window 
(`startTime`/`endTime`) and `resetConsumeOffset` `resetTime` were shifted by 
the server's zone offset, resetting offsets and querying messages at the wrong 
wall-clock times.
   
   ## Brief changelog
   
   - Use an explicit `Asia/Shanghai` zone for all Aliyun OpenAPI timestamp 
parse/format, independent of the server default zone.
   - Add a test asserting `parseTimeMillis`/`formatTimeMillis` round-trip in 
UTC+8.
   
   ## Verifying this change
   
   - `mvn -q -Dtest=AliyunInstanceProviderTest test`
   - `mvn -q test` (1056/1056)
   - `git diff --check`
   


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