Skip to content

Commit e04fc13

Browse files
marco.monteleoneLonko
authored andcommitted
Fixed timestamp conversion from milliseconds to microseconds
1 parent b4c81a1 commit e04fc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/codenotary/immudb4j/sql/SQLValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public SQLValue(Date value) {
8080
if (value == null) {
8181
builder.setNull(null);
8282
} else {
83-
builder.setTs(TimeUnit.MICROSECONDS.toMicros(value.getTime()));
83+
builder.setTs(TimeUnit.MILLISECONDS.toMicros(value.getTime()));
8484
}
8585

8686
this.value = builder.build();

0 commit comments

Comments
 (0)