Skip to content

Commit 4307f02

Browse files
authored
Merge pull request #55 from Lonko/fix/timestamp_conversion
2 parents b4c81a1 + e04fc13 commit 4307f02

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)