Skip to content

Commit df82528

Browse files
committed
Fixed millis truncation.
apache#36519 (comment)
1 parent bd31dc4 commit df82528

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/accessor/impl/calendar/ArrowFlightJdbcTimeStampVectorAccessorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private Timestamp getTimestampForVector(int currentRow, String timeZone) {
328328
LocalDateTime.ofInstant(
329329
Instant.ofEpochMilli(millis), TimeZone.getTimeZone("UTC").toZoneId())
330330
.atZone(TimeZone.getTimeZone(timeZone).toZoneId());
331-
expectedTimestamp = new Timestamp(sourceTZDateTime.toEpochSecond() * 1000);
331+
expectedTimestamp = new Timestamp(sourceTZDateTime.toInstant().toEpochMilli());
332332
}
333333
return expectedTimestamp;
334334
}

0 commit comments

Comments
 (0)