Skip to content

Commit

Permalink
Quick fix for #991 (#998)
Browse files Browse the repository at this point in the history
The current fix for #991 missed the usage of `Timestamp.from()`. This change should fix that.
  • Loading branch information
Namnodorel authored Jul 20, 2020
1 parent ffcc91a commit 60595b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class JavaLocalDateTimeColumnType : ColumnType(), IDateColumnType {

override fun notNullValueToDB(value: Any): Any {
if (value is LocalDateTime) {
return java.sql.Timestamp.from(value.atZone(ZoneId.systemDefault()).toInstant())
return java.sql.Timestamp(value.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli())
}
return value
}
Expand Down

0 comments on commit 60595b9

Please sign in to comment.