You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2019/04/03 09:57:13 UTC
[GitHub] [drill] vvysotskyi commented on a change in pull request #1729:
DRILL-7150: Fix timezone conversion for timestamp from maprdb after the
transition from PDT to PST
vvysotskyi 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_r271664340
##########
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:
Done.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services