diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-16 22:59:33 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-16 22:59:33 +1300 |
commit | b857d08adc3336630b5e471f89ea0bf0e952cf18 (patch) | |
tree | 075adcd598492ff473941ba60b10b8a42fe78b45 | |
parent | bb75474486b574b5364798b97cd700fa10e4e642 (diff) | |
parent | b488ccc2654ffe2c51092a21be7e52f58bb792a4 (diff) | |
download | trackermap-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.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); |