diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2011-06-16 12:19:59 +0000 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2011-06-16 12:19:59 +0000 |
commit | 8ad6a579411e738f8c6c747c222ff6051872d42a (patch) | |
tree | f953edb5a97541cb307c5f28e6de16827067421d /src/net/sourceforge/opentracking/protocol/tk103 | |
parent | e71d3a6b1ee198a3c0c99b354e111663dedf84e7 (diff) | |
download | trackermap-server-8ad6a579411e738f8c6c747c222ff6051872d42a.tar.gz trackermap-server-8ad6a579411e738f8c6c747c222ff6051872d42a.tar.bz2 trackermap-server-8ad6a579411e738f8c6c747c222ff6051872d42a.zip |
Diffstat (limited to 'src/net/sourceforge/opentracking/protocol/tk103')
-rw-r--r-- | src/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoder.java b/src/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoder.java index c11d22a17..2ff6ce949 100644 --- a/src/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoder.java +++ b/src/net/sourceforge/opentracking/protocol/tk103/Tk103ProtocolDecoder.java @@ -17,6 +17,7 @@ package net.sourceforge.opentracking.protocol.tk103; import java.util.Calendar; import java.util.GregorianCalendar; +import java.util.TimeZone; import java.util.Timer; import java.util.TimerTask; import java.util.regex.Pattern; @@ -104,7 +105,7 @@ public class Tk103ProtocolDecoder extends OneToOneDecoder { position.setDeviceId(dataManager.getDeviceByImei(imei).getId()); // Date - Calendar time = new GregorianCalendar(); + Calendar time = new GregorianCalendar(TimeZone.getTimeZone("UTC")); time.clear(); time.set(Calendar.YEAR, 2000 + Integer.valueOf(parser.group(index++))); time.set(Calendar.MONTH, Integer.valueOf(parser.group(index++)) - 1); |