You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small issue I've noticed is the creation of a java.sql.Timestamp based on a LocalDateTime does not set the nanoseconds. If they are present in the LocalDateTime, they will be truncated in the Timestamp.
override fun notNullValueToDB(value: Any): Any {
if (value is LocalDateTime) {
return java.sql.Timestamp(value.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli())
}
return value
}
should be
override fun notNullValueToDB(value: Any): Any {
if (value is LocalDateTime) {
return java.sql.Timestamp.from( value.atZone(ZoneId.systemDefault()).toInstant() )
}
return value
}
The text was updated successfully, but these errors were encountered:
Hi,
A small issue I've noticed is the creation of a java.sql.Timestamp based on a LocalDateTime does not set the nanoseconds. If they are present in the LocalDateTime, they will be truncated in the Timestamp.
should be
The text was updated successfully, but these errors were encountered: