Minimal fix for date time handling @foconis

This commit is contained in:
Roland Praml committed 2021-11-29 08:48:17 +01:00
1 parent ed83d8d5a3
commit 454f57eb1a
2 files changed
+2 -2

No files matched your search

@@ -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 {