Minimal fix for date time handling @foconis

This commit is contained in:
Roland Praml
2021-11-29 08:48:17 +01:00
parent ed83d8d5a3
commit 454f57eb1a
2 changed files with 2 additions and 2 deletions
@@ -178,7 +178,7 @@ public class DataBind implements DataBinder {
@Override
public final void setTime(Time v) throws SQLException {
Calendar timeZone = dataTimeZone.getTimeZone();
Calendar timeZone = dataTimeZone.getDateTimeZone();
if (timeZone != null) {
pstmt.setTime(++pos, v, timeZone);
} else {
@@ -151,7 +151,7 @@ public class RsetDataReader implements DataReader {
@Override
public Time getTime() throws SQLException {
Calendar cal = dataTimeZone.getTimeZone();
Calendar cal = dataTimeZone.getDateTimeZone();
if (cal != null) {
return rset.getTime(pos(), cal);
} else {