This is an automated email from the ASF dual-hosted git repository. zhongjiajie pushed a commit to branch 3.2.0-release in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit 06e5b21b4f1ceccd17c7663bedda7012819542cd Author: JueLance <[email protected]> AuthorDate: Wed Sep 13 09:54:55 2023 +0800 Fix java.sql.Date serialize error by convert it to java.util.Date (#13050) (cherry picked from commit e7c579d8f1bcb7f4e91053bb23c6bcf743e1d050) --- .../main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java index 11c86ec531..16182ccda6 100644 --- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java +++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/DateUtils.java @@ -75,7 +75,7 @@ public final class DateUtils { * @return local datetime */ private static LocalDateTime date2LocalDateTime(Date date, ZoneId zoneId) { - return LocalDateTime.ofInstant(date.toInstant(), zoneId); + return LocalDateTime.ofInstant(Instant.ofEpochMilli(date.getTime()), zoneId); } /**
