aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 23:59:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-14 23:59:42 +1300
commit20c2cd584b8632c0a8cae2cd8285b9a279c1991e (patch)
tree9ab9fb964fb39400cd43260a7a966bfaada4395d /src/org/traccar/protocol
parentaac29a8a4452b4977779e2ceb7285c17c6369691 (diff)
downloadtraccar-server-20c2cd584b8632c0a8cae2cd8285b9a279c1991e.tar.gz
traccar-server-20c2cd584b8632c0a8cae2cd8285b9a279c1991e.tar.bz2
traccar-server-20c2cd584b8632c0a8cae2cd8285b9a279c1991e.zip
Fixed GPS103 timezone calculation
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
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("<alarm>");
@@ -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