From de6eca45cf61268ec5940251b2fb09dd639dab66 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 4 Aug 2015 00:32:02 +1200 Subject: Fix Ulbotech time zone correction --- src/org/traccar/protocol/UlbotechProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java index f2cedf31e..8a9df5992 100644 --- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java +++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java @@ -28,11 +28,11 @@ import org.traccar.model.Position; public class UlbotechProtocolDecoder extends BaseProtocolDecoder { - private long timeZone; + private final long timeZone; public UlbotechProtocolDecoder(UlbotechProtocol protocol) { super(protocol); - timeZone = Context.getConfig().getInteger(protocol + ".timezone", 0); + timeZone = Context.getConfig().getInteger(getProtocolName() + ".timezone", 0); } private static final short DATA_GPS = 0x01; -- cgit v1.2.3