wgtmac commented on code in PR #35139:
URL: https://github.com/apache/arrow/pull/35139#discussion_r1167971393


##########
java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/utils/DateTimeUtils.java:
##########
@@ -47,7 +47,7 @@ public static long applyCalendarOffset(long milliseconds, 
Calendar calendar) {
     final TimeZone defaultTz = TimeZone.getDefault();
 
     if (tz != defaultTz) {
-      milliseconds -= tz.getOffset(milliseconds) - 
defaultTz.getOffset(milliseconds);
+      milliseconds += tz.getOffset(milliseconds) - 
defaultTz.getOffset(milliseconds);

Review Comment:
   In the test above, the user-supplied timezone is `AMERICA_VANCOUVER`. When 
the input text to varCharVector is `2021-07-09 00:00:00.0`, 
varCharVectorAccessor.getTimestamp(calendar) returns `2021-07-09 07:00:00.0`. 
This does not make sense to me at all. @lidavidm 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to