From 20c2cd584b8632c0a8cae2cd8285b9a279c1991e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 14 Feb 2013 23:59:42 +1300 Subject: Fixed GPS103 timezone calculation --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index 8980c702f..747b5e0bd 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -96,12 +96,12 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { // Get device by IMEI String imei = parser.group(index++); - try { + /*try { position.setDeviceId(getDataManager().getDeviceByImei(imei).getId()); } catch(Exception error) { Log.warning("Unknown device - " + imei); return null; - } + }*/ // Alarm message extendedInfo.append(""); @@ -134,7 +134,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { } else if (deltaMinutes > 12) { deltaMinutes -= 24 * 60; } - time.add(Calendar.MINUTE, deltaMinutes); + time.add(Calendar.MINUTE, -deltaMinutes); position.setTime(time.getTime()); // Validity -- cgit v1.2.3