[
https://issues.apache.org/jira/browse/BEAM-14541?focusedWorklogId=776601&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-776601
]
ASF GitHub Bot logged work on BEAM-14541:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 01/Jun/22 00:11
Start Date: 01/Jun/22 00:11
Worklog Time Spent: 10m
Work Description: asf-ci commented on PR #17789:
URL: https://github.com/apache/beam/pull/17789#issuecomment-1142819834
Can one of the admins verify this patch?
Issue Time Tracking
-------------------
Worklog Id: (was: 776601)
Time Spent: 0.5h (was: 20m)
> 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: 0.5h
> 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)