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

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 40ecc08dc [core] the create time of FilesTable should be local date 
time (#1498)
40ecc08dc is described below

commit 40ecc08dcc9e987d2bf34a8b516ab6999fb8416b
Author: JunZhang <[email protected]>
AuthorDate: Thu Jul 6 17:19:54 2023 +0800

    [core] the create time of FilesTable should be local date time (#1498)
---
 paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java 
b/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
index f932aacce..f5f30d9b0 100644
--- a/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
+++ b/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
@@ -30,6 +30,7 @@ import org.apache.paimon.types.DataTypes;
 import org.apache.paimon.types.IntType;
 import org.apache.paimon.types.RowType;
 
+import java.time.LocalDateTime;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
@@ -115,7 +116,7 @@ public class DataFileMeta {
                 schemaId,
                 level,
                 Collections.emptyList(),
-                Timestamp.fromEpochMillis(System.currentTimeMillis()));
+                Timestamp.fromLocalDateTime(LocalDateTime.now()));
     }
 
     public DataFileMeta(

Reply via email to