aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-12-14 22:51:21 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-12-14 22:51:21 -0800
commit54de76fe8645c8da30bbc08d1c8efb1ad472e8b5 (patch)
treeca7e51d335fa6c8978124648cddb06d8db827d70
parent5a2baafba92958c82b81873dae19c5df7e793eea (diff)
downloadtraccar-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.tar.gz
traccar-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.tar.bz2
traccar-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.zip
Fix time decoding
-rw-r--r--src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java
index 5db7f0bc0..65333ba6e 100644
--- a/src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java
@@ -52,7 +52,7 @@ public class HoopoProtocolDecoder extends BaseProtocolDecoder {
Position position = new Position(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());
- Date time = new Date(OffsetDateTime.parse(eventData.getString("receiveTime")).toInstant().toEpochMilli());
+ Date time = new Date(OffsetDateTime.parse(json.getString("eventTime")).toInstant().toEpochMilli());
position.setTime(time);
position.setValid(true);