aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-30 10:41:18 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-30 10:41:18 -0800
commitfa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d (patch)
treead27817e4da87814bcd9b912a582943cf3272f78 /src/main/java/org
parent6101300ab45882e02e4a0b90d30070cb904378eb (diff)
downloadtraccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.tar.gz
traccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.tar.bz2
traccar-server-fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d.zip
Fix time decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/IotmProtocolDecoder.java2
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();