[#8013] Regression in OffsetDateTime parser for negative tz offsets

This commit is contained in:
lukaseder 2018-11-05 10:26:43 +01:00
parent 05058a501c
commit ee2b015350

View File

@ -2515,6 +2515,11 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
// [#4338] [#5180] [#5776] PostgreSQL is more lenient regarding the offset format
if (parseCharIf(string, position, ':'))
offsetMinutes = parseInt(string, position, 2);
if (minus) {
offsetHours = -offsetHours;
offsetMinutes = -offsetMinutes;
}
}
}