From 0070e2750587d3ef27f823b37b35d2582a79394c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 26 Sep 2014 22:11:17 +1200 Subject: Fix timezone parameter (fix #881) --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index a0ff5a0b8..4b9aaedf3 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -39,7 +39,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { if (serverManager != null) { Properties p = getServerManager().getProperties(); - if (p.contains("gt06.timezone")) { + if (p.containsKey("gt06.timezone")) { timeZone.setRawOffset( Integer.valueOf(p.getProperty("gt06.timezone")) * 1000); } @@ -130,7 +130,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } - else if (deviceId != null && ( + else if (/*deviceId != null && */( type == MSG_GPS || type == MSG_GPS_LBS || type == MSG_GPS_LBS_STATUS || -- cgit v1.2.3