Skip to content

Commit b37e5b5

Browse files
committed
Remove JDK 9 method
1 parent faebaba commit b37e5b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHousePreparedStatementTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testReadWriteDateWithClientTimeZone() throws SQLException {
8181
.prepareStatement("insert into test_read_write_date_cz values (?, ?, ?)")) {
8282
TimeZone tz = conn.getServerTimeZone();
8383
// 2021-03-25
84-
LocalDate d = LocalDate.ofInstant(Instant.ofEpochSecond(1616630400L), tz.toZoneId());
84+
LocalDate d = LocalDateTime.ofInstant(Instant.ofEpochSecond(1616630400L), tz.toZoneId()).toLocalDate();
8585
Date x = Date.valueOf(d);
8686
s.execute("drop table if exists test_read_write_date_cz");
8787
try {

0 commit comments

Comments
 (0)