Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Jul 3, 2024
1 parent f2ec7be commit 8b27d01
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public DuckDBTimestamp(Timestamp sqlTimestamp) {
protected long timeMicros;

public static Timestamp toSqlTimestamp(long timeMicros) {
return Timestamp.valueOf(
LocalDateTime.ofEpochSecond(micros2seconds(timeMicros), nanosPartMicros(timeMicros), ZoneOffset.UTC).toString());
return new Timestamp(timeMicros);
}

public static Timestamp toSqlTimestampNanos(long timeNanos) {
Expand Down
Loading

0 comments on commit 8b27d01

Please sign in to comment.