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
sets Calendar.MILLISECOND field to number of MICROseconds. So that resulting Calendar value is wrong — it differs from original value by few minutes (depending on actual nanos value). The line should be
Value of type
TIMESTAMP WITH TIME ZONE
is being incorrectly parsed tojava.util.Calendar
.The problem is in
PgDateSupportUtils.parseCalendar
function. LineuseCal.set(Calendar.MILLISECOND, nanos.get(parsedts).asInstanceOf[Int] / 1000)
sets
Calendar.MILLISECOND
field to number of MICROseconds. So that resulting Calendar value is wrong — it differs from original value by few minutes (depending on actualnanos
value). The line should beuseCal.set(Calendar.MILLISECOND, nanos.get(parsedts).asInstanceOf[Int] / 1000000)
instead.
I have patched 0.14.6 and checked fix in local environment.
Hope 0.14.7 could be released with given fix.
The text was updated successfully, but these errors were encountered: