Skip to content

Commit

Permalink
Fixing loss of precision in milliseconds field of DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Jun 2, 2021
1 parent 14f5e2d commit 3e852d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ public int compareTo(IDateTime arg0) {
public long getInstant() {
return actual
.atDate(LocalDate.of(1970, 1, 1))
.toEpochSecond() * 1000
.toInstant()
.toEpochMilli()
;
}

Expand Down

0 comments on commit 3e852d2

Please sign in to comment.