diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-01 23:25:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-01 23:25:00 +1200 |
commit | c81160165ae6881c9195cf3c00469cb9466e6364 (patch) | |
tree | c262cbaa8e0c962672a152e8d7e393d4e31c0471 /src/org | |
parent | d53db01813ee67e7578f55c162639aa61608ed0b (diff) | |
download | trackermap-server-c81160165ae6881c9195cf3c00469cb9466e6364.tar.gz trackermap-server-c81160165ae6881c9195cf3c00469cb9466e6364.tar.bz2 trackermap-server-c81160165ae6881c9195cf3c00469cb9466e6364.zip |
Fix teltonika decoder (fix #207)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index 723f6f93e..99e923692 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -83,7 +83,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { if (codec == CODEC_GH3000) { long time = buf.readUnsignedInt() & 0x3fffffff; - time += 1199145600; // 2008-01-01 00:00:00 + time += 1167609600; // 2007-01-01 00:00:00 position.setTime(new Date(time * 1000)); globalMask = buf.readUnsignedByte(); |