You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/01/24 05:48:25 UTC

[GitHub] [rocketmq] duhenglucky commented on a change in pull request #3625: [ISSUE #3392] fix decode time from unique key differ in different timezone

duhenglucky commented on a change in pull request #3625:
URL: https://github.com/apache/rocketmq/pull/3625#discussion_r790429551



##########
File path: common/src/main/java/org/apache/rocketmq/common/message/MessageClientIDSetter.java
##########
@@ -48,7 +50,7 @@
     }
 
     private synchronized static void setStartTime(long millis) {
-        Calendar cal = Calendar.getInstance();
+        Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT+8"));

Review comment:
       It is recommended to use the time zone as an optional option instead of the GMT+8 by default




-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org