amansinha100 commented on a change in pull request #1729: DRILL-7150: Fix
timezone conversion for timestamp from maprdb after the transition from PDT to
PST
URL: https://github.com/apache/drill/pull/1729#discussion_r271548171
##########
File path:
contrib/format-maprdb/src/main/java/org/apache/drill/exec/store/mapr/db/json/MaprDBJsonRecordReader.java
##########
@@ -357,7 +357,8 @@ protected void writeTimeStamp(MapOrListWriterImpl writer,
String fieldName, Docu
* @param reader document reader
*/
private void writeTimestampWithLocalZoneOffset(MapOrListWriterImpl writer,
String fieldName, DocumentReader reader) {
- long timestamp = reader.getTimestampLong() +
DateUtility.TIMEZONE_OFFSET_MILLIS;
+ long timestamp =
Instant.ofEpochMilli(reader.getTimestampLong()).atZone(ZoneId.systemDefault())
Review comment:
Same as above.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services