aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorEvgeny Popov <evgeny.popov72@gmail.com>2016-10-16 14:18:26 +0500
committerEvgeny Popov <evgeny.popov72@gmail.com>2016-10-16 14:18:26 +0500
commitb488ccc2654ffe2c51092a21be7e52f58bb792a4 (patch)
tree231f14d2498e303069eeb803523e9e6ac93f06ed /src/org/traccar
parentedaa07444d1363f3197cbd0f2c56f9ffe1000bf4 (diff)
downloadtraccar-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.tar.gz
traccar-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.tar.bz2
traccar-server-b488ccc2654ffe2c51092a21be7e52f58bb792a4.zip
Fix month decode in Navis protocol
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java2
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);