From fa3d072b47be36ba011d6f48a1e3fe39bb5f2f6d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 30 Dec 2020 10:41:18 -0800 Subject: Fix time decoding --- src/main/java/org/traccar/protocol/IotmProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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(); -- cgit v1.2.3