Skip to content

Commit c47347a

Browse files
authored
Merge pull request #973 from dr-itz/pg-fix-time
[postgres] fix time handling bug, fallout from 8cb5a2a
2 parents 906f322 + cf5755d commit c47347a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ protected void setTimeParameter(final ThreadContext context,
352352
final int index, IRubyObject value,
353353
final IRubyObject attribute, final int type) throws SQLException {
354354
// to handle more fractional second precision than (default) 59.123 only
355-
String timeStr = DateTimeUtils.timeString(context, value, DateTimeZone.UTC, true);
355+
String timeStr = DateTimeUtils.timeString(context, value, getDefaultTimeZone(context), true);
356356
statement.setObject(index, timeStr, Types.OTHER);
357357
}
358358

0 commit comments

Comments
 (0)