Fix java.sql.Date serialize error by convert it to java.util.Date (#13050)
(cherry picked from commit e7c579d8f1)
This commit is contained in:
parent
82926f1850
commit
06e5b21b4f
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue