diff options
author | Evgeny Popov <evgeny.popov72@gmail.com> | 2016-10-16 14:18:26 +0500 |
---|---|---|
committer | Evgeny Popov <evgeny.popov72@gmail.com> | 2016-10-16 14:18:26 +0500 |
commit | b488ccc2654ffe2c51092a21be7e52f58bb792a4 (patch) | |
tree | 231f14d2498e303069eeb803523e9e6ac93f06ed /src/org | |
parent | edaa07444d1363f3197cbd0f2c56f9ffe1000bf4 (diff) | |
download | trackermap-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.tar.gz trackermap-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.tar.bz2 trackermap-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.zip |
Fix month decode in Navis protocol
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java index 03e578fe9..210c1d8c1 100644 --- a/src/org/traccar/protocol/NavisProtocolDecoder.java +++ b/src/org/traccar/protocol/NavisProtocolDecoder.java @@ -139,7 +139,7 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder { DateBuilder dateBuilder = new DateBuilder() .setTime(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte()) - .setDateReverse(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte()); + .setDateReverse(buf.readUnsignedByte(), buf.readUnsignedByte() + 1, buf.readUnsignedByte()); position.setTime(dateBuilder.getDate()); position.setLatitude(buf.readFloat() / Math.PI * 180); |