From c7cb3de0ef6745cd66cec065c1d6250258b18628 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 23 Feb 2018 01:31:30 +1300 Subject: Fix DMT hello response --- src/org/traccar/protocol/DmtProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java index a66156ba2..74db5a6f7 100644 --- a/src/org/traccar/protocol/DmtProtocolDecoder.java +++ b/src/org/traccar/protocol/DmtProtocolDecoder.java @@ -81,7 +81,7 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder { channel, remoteAddress, buf.readBytes(15).toString(StandardCharsets.US_ASCII)); ChannelBuffer response = ChannelBuffers.dynamicBuffer(ByteOrder.LITTLE_ENDIAN, 0); - response.writeInt((int) (System.currentTimeMillis() / 1000)); + response.writeInt((int) ((System.currentTimeMillis() - 1356998400000L) / 1000)); response.writeInt(deviceSession != null ? 0 : 1); // flags sendResponse(channel, MSG_HELLO_RESPONSE, response); -- cgit v1.2.3