Skip to content

Commit 90a2395

Browse files
authored
Merge pull request #1066 from felipefava/fix/date-columns
Fix date time zone for date columns
2 parents a05e449 + c17591f commit 90a2395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/arjdbc/jdbc/RubyJdbcConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ protected IRubyObject dateToRuby(final ThreadContext context,
23482348
return RubyString.newString(runtime, DateTimeUtils.dateToString(value));
23492349
}
23502350

2351-
return DateTimeUtils.newDateAsTime(context, value, null).callMethod(context, "to_date");
2351+
return DateTimeUtils.newDateAsTime(context, value, DateTimeZone.UTC).callMethod(context, "to_date");
23522352
}
23532353

23542354
protected IRubyObject timeToRuby(final ThreadContext context,

0 commit comments

Comments
 (0)