aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-23 01:31:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-02-23 01:31:30 +1300
commitc7cb3de0ef6745cd66cec065c1d6250258b18628 (patch)
tree1f7854f9a5257caf3abe26873ece7d000b0dd11a /src/org
parentd7c032a3855e000a2173d386c0e8e66e11422d8b (diff)
downloadtrackermap-server-c7cb3de0ef6745cd66cec065c1d6250258b18628.tar.gz
trackermap-server-c7cb3de0ef6745cd66cec065c1d6250258b18628.tar.bz2
trackermap-server-c7cb3de0ef6745cd66cec065c1d6250258b18628.zip
Fix DMT hello response
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/DmtProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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);