diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-10 12:47:36 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-03-10 12:47:36 +1300 |
commit | e69316a43169e16d1cb347536177886ed5785873 (patch) | |
tree | 2d11a25fabbac4e6a87988df8f57bce845279c73 /src/org/traccar/protocol | |
parent | 2cb5e686486cfdcec425d4a29e4818533bcf154a (diff) | |
download | trackermap-server-e69316a43169e16d1cb347536177886ed5785873.tar.gz trackermap-server-e69316a43169e16d1cb347536177886ed5785873.tar.bz2 trackermap-server-e69316a43169e16d1cb347536177886ed5785873.zip |
Fix GPS103 time bug
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index 2e3620179..9646a5e6c 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -126,7 +126,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { int deltaMinutes = (localHours - utcHours) * 60 + localMinutes - utcMinutes; if (deltaMinutes <= -12 * 60) { deltaMinutes += 24 * 60; - } else if (deltaMinutes > 12) { + } else if (deltaMinutes > 12 * 60) { deltaMinutes -= 24 * 60; } time.add(Calendar.MINUTE, -deltaMinutes); |