diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-12-14 22:51:21 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-12-14 22:51:21 -0800 |
commit | 54de76fe8645c8da30bbc08d1c8efb1ad472e8b5 (patch) | |
tree | ca7e51d335fa6c8978124648cddb06d8db827d70 /src/main/java/org/traccar/protocol | |
parent | 5a2baafba92958c82b81873dae19c5df7e793eea (diff) | |
download | trackermap-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.tar.gz trackermap-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.tar.bz2 trackermap-server-54de76fe8645c8da30bbc08d1c8efb1ad472e8b5.zip |
Fix time decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/HoopoProtocolDecoder.java | 2 |
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); |