This is an automated email from the ASF dual-hosted git repository.

wangxianghu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new f449807  [MINOR] fix UTC timezone config (#4950)
f449807 is described below

commit f44980763030663d8f6ee72555cbb4c280945267
Author: Yuwei XIAO <[email protected]>
AuthorDate: Fri Mar 4 15:09:39 2022 +0800

    [MINOR] fix UTC timezone config (#4950)
---
 .../apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
 
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
index 9c0e33b..33b847b 100644
--- 
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
+++ 
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
@@ -69,7 +69,7 @@ public class HoodieInstantTimeGenerator {
     return lastInstantTime.updateAndGet((oldVal) -> {
       String newCommitTime;
       do {
-        if (commitTimeZone.equals(HoodieTimelineTimeZone.UTC.toString())) {
+        if (commitTimeZone.equals(HoodieTimelineTimeZone.UTC)) {
           LocalDateTime now = LocalDateTime.now(ZoneOffset.UTC);
           newCommitTime = now.format(MILLIS_INSTANT_TIME_FORMATTER);
         } else {

Reply via email to