diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-30 10:22:13 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-30 10:22:13 +1300 |
commit | 021728a530608d771c381e0f8fbaf120997717c2 (patch) | |
tree | 7902a1227da94224f845bebfbccf481efe879f8d /src/org/traccar/protocol/AutoTrackProtocolDecoder.java | |
parent | d9f6849507ed1dfab395d0ad6f3d058eed319d33 (diff) | |
download | trackermap-server-021728a530608d771c381e0f8fbaf120997717c2.tar.gz trackermap-server-021728a530608d771c381e0f8fbaf120997717c2.tar.bz2 trackermap-server-021728a530608d771c381e0f8fbaf120997717c2.zip |
Decode time correctly
Diffstat (limited to 'src/org/traccar/protocol/AutoTrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AutoTrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AutoTrackProtocolDecoder.java b/src/org/traccar/protocol/AutoTrackProtocolDecoder.java index fabf2ffda..3c1fd256b 100644 --- a/src/org/traccar/protocol/AutoTrackProtocolDecoder.java +++ b/src/org/traccar/protocol/AutoTrackProtocolDecoder.java @@ -50,7 +50,7 @@ public class AutoTrackProtocolDecoder extends BaseProtocolDecoder { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); - position.setTime(new Date(1007078400000L + buf.readUnsignedIntLE() * 1000)); // seconds since 2002 + position.setTime(new Date(1009843200000L + buf.readUnsignedIntLE() * 1000)); // seconds since 2002 position.setLatitude(buf.readIntLE() * 0.0000001); position.setLongitude(buf.readIntLE() * 0.0000001); |