Github user wgtmac commented on a diff in the pull request: https://github.com/apache/orc/pull/233#discussion_r175257368 --- Diff: c++/src/ColumnWriter.cc --- @@ -1194,12 +1194,11 @@ namespace orc { bool hasNull = false; for (uint64_t i = 0; i < numValues; ++i) { if (notNull == nullptr || notNull[i]) { - // TimestampVectorBatch already stores data in UTC - int64_t millsUTC = secs[i] * 1000 + nanos[i] / 1000000; + int64_t millsUTC = + (secs[i] + timezone.getVariant(secs[i]).gmtOffset) * 1000 + nanos[i] / 1000000; --- End diff -- You can check TimestampTreeWriter.java:113. Without this line, we will see inconsistency with java code.
---