aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java')
-rw-r--r--src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java b/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
index 865d1cf72..afd2405c8 100644
--- a/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
+++ b/src/net/sourceforge/opentracking/protocol/xexun/XexunProtocolDecoder.java
@@ -20,6 +20,7 @@ import java.util.GregorianCalendar;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.text.ParseException;
+import java.util.TimeZone;
import java.util.Timer;
import java.util.TimerTask;
import org.jboss.netty.channel.Channel;
@@ -91,7 +92,7 @@ public class XexunProtocolDecoder extends OneToOneDecoder {
Integer index = 1;
// Time
- Calendar time = new GregorianCalendar();
+ Calendar time = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
time.clear();
time.set(Calendar.HOUR, Integer.valueOf(parser.group(index++)));
time.set(Calendar.MINUTE, Integer.valueOf(parser.group(index++)));