diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:41:18 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-30 10:41:18 -0800 |
commit | fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d (patch) | |
tree | ad27817e4da87814bcd9b912a582943cf3272f78 /src/main | |
parent | 6101300ab45882e02e4a0b90d30070cb904378eb (diff) | |
download | traccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.tar.gz traccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.tar.bz2 traccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.zip |
Fix time decoding
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/IotmProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java b/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java index ac92b299f..88641081e 100644 --- a/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java @@ -150,7 +150,7 @@ public class IotmProtocolDecoder extends BaseProtocolDecoder { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); - position.setTime(new Date(record.readUnsignedIntLE())); + position.setTime(new Date(record.readUnsignedIntLE() * 1000)); while (record.readableBytes() > 0) { int sensorType = record.readUnsignedByte(); |