[ 
https://issues.apache.org/jira/browse/BEAM-14541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17550098#comment-17550098
 ] 

Danny McCormick commented on BEAM-14541:
----------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/21660

> Timestamp value conversion in Cloud Datastore connector is wrong
> ----------------------------------------------------------------
>
>                 Key: BEAM-14541
>                 URL: https://issues.apache.org/jira/browse/BEAM-14541
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>            Reporter: Yixiao Shen
>            Assignee: Yixiao Shen
>            Priority: P2
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Code in org.apache.beam.sdk.io.gcp.datastore.EntityToRow class:
> {code:java}
> com.google.protobuf.Timestamp time = val.getTimestampValue();
> long millis = time.getSeconds() * 1000 + time.getNanos() / 1000;
> return Instant.ofEpochMilli(millis).toDateTime();{code}
> 1 millisecond = 1,000,000 nanoseconds



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to