aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-16 22:59:33 +1300
committerGitHub <noreply@github.com>2016-10-16 22:59:33 +1300
commitb857d08adc3336630b5e471f89ea0bf0e952cf18 (patch)
tree075adcd598492ff473941ba60b10b8a42fe78b45
parentbb75474486b574b5364798b97cd700fa10e4e642 (diff)
parentb488ccc2654ffe2c51092a21be7e52f58bb792a4 (diff)
downloadtrackermap-server-b857d08adc3336630b5e471f89ea0bf0e952cf18.tar.gz
trackermap-server-b857d08adc3336630b5e471f89ea0bf0e952cf18.tar.bz2
trackermap-server-b857d08adc3336630b5e471f89ea0bf0e952cf18.zip
Merge pull request #2442 from EvgenyPopov72/master
Fix month decode in Navis protocol
-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);