aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-04 21:59:47 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-04 21:59:47 -0800
commit67e287767cf7935f640085314e8fa7569dc0b2ae (patch)
treea1372b6dd0d583c541473e93c8422c5ce4bdfc7c /src/main
parent99bab1f37f0a21e5c0e20cb78e30218c98133bf0 (diff)
downloadtraccar-server-67e287767cf7935f640085314e8fa7569dc0b2ae.tar.gz
traccar-server-67e287767cf7935f640085314e8fa7569dc0b2ae.tar.bz2
traccar-server-67e287767cf7935f640085314e8fa7569dc0b2ae.zip
Update year decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java
index 846b33396..ea0966a5d 100644
--- a/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PacificTrackProtocolDecoder.java
@@ -73,7 +73,7 @@ public class PacificTrackProtocolDecoder extends BaseProtocolDecoder {
position.setValid(BitUtil.check(buf.readUnsignedByte(), 4));
int date = buf.readUnsignedByte();
DateBuilder dateBuilder = new DateBuilder()
- .setDate(2010 + BitUtil.from(date, 4), BitUtil.to(date, 4), buf.readUnsignedByte())
+ .setDate(2020 + BitUtil.from(date, 4), BitUtil.to(date, 4), buf.readUnsignedByte())
.setTime(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte());
position.setTime(dateBuilder.getDate());
position.setLatitude(buf.readUnsignedInt() / 1000000.0 - 90.0);