diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2011-11-18 09:09:15 +0000 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2011-11-18 09:09:15 +0000 |
commit | 91a8d2558644293758c93d2c1df21487cd387993 (patch) | |
tree | 6399d1bbd8b522acf8eeb6ebceb88fe04892544b /src/org/traccar/protocol/t55/T55ProtocolDecoder.java | |
parent | 710bdd092b193704fabdf6136bd5bffe0d8e01e7 (diff) | |
download | trackermap-server-91a8d2558644293758c93d2c1df21487cd387993.tar.gz trackermap-server-91a8d2558644293758c93d2c1df21487cd387993.tar.bz2 trackermap-server-91a8d2558644293758c93d2c1df21487cd387993.zip |
Diffstat (limited to 'src/org/traccar/protocol/t55/T55ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/t55/T55ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/t55/T55ProtocolDecoder.java b/src/org/traccar/protocol/t55/T55ProtocolDecoder.java index 08c5e6447..8247b9fd4 100644 --- a/src/org/traccar/protocol/t55/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/t55/T55ProtocolDecoder.java @@ -119,7 +119,6 @@ public class T55ProtocolDecoder extends OneToOneDecoder { time.set(Calendar.MINUTE, Integer.valueOf(parser.group(index++))); time.set(Calendar.SECOND, Integer.valueOf(parser.group(index++))); index += 1; // Skip milliseconds - position.setTime(time.getTime()); // Validity position.setValid(parser.group(index++).compareTo("A") == 0 ? true : false); @@ -156,6 +155,7 @@ public class T55ProtocolDecoder extends OneToOneDecoder { time.set(Calendar.DAY_OF_MONTH, Integer.valueOf(parser.group(index++))); time.set(Calendar.MONTH, Integer.valueOf(parser.group(index++)) - 1); time.set(Calendar.YEAR, 2000 + Integer.valueOf(parser.group(index++))); + position.setTime(time.getTime()); // Altitude position.setAltitude(0.0); |