Skip to content

Commit

Permalink
Remove JDK 9 method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Dec 29, 2021
1 parent faebaba commit b37e5b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void testReadWriteDateWithClientTimeZone() throws SQLException {
.prepareStatement("insert into test_read_write_date_cz values (?, ?, ?)")) {
TimeZone tz = conn.getServerTimeZone();
// 2021-03-25
LocalDate d = LocalDate.ofInstant(Instant.ofEpochSecond(1616630400L), tz.toZoneId());
LocalDate d = LocalDateTime.ofInstant(Instant.ofEpochSecond(1616630400L), tz.toZoneId()).toLocalDate();
Date x = Date.valueOf(d);
s.execute("drop table if exists test_read_write_date_cz");
try {
Expand Down

0 comments on commit b37e5b5

Please sign in to comment.