diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-17 18:46:17 -0400 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-17 18:48:45 -0400 |
commit | 7f6280f725100d446405d5f92ca8bd9435d621f4 (patch) | |
tree | d09815dbbc35fcb1919a709c322d9b46e99e82b7 /src | |
parent | ee834a1f70431e25063f929af6fe4eff4e27e6c0 (diff) | |
download | trackermap-server-7f6280f725100d446405d5f92ca8bd9435d621f4.tar.gz trackermap-server-7f6280f725100d446405d5f92ca8bd9435d621f4.tar.bz2 trackermap-server-7f6280f725100d446405d5f92ca8bd9435d621f4.zip |
Removed capture of milliseconds for UTC time in Gps103 protocol; Determined one test position in Gps103ProtocolDecoderTest.java has only 2 digits where 3 digits are needed for milliseconds;
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gps103ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index 5d402c09d..49f1a2049 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -43,7 +43,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { .expression("([^,]+)?,") // rfid .expression("[FL],") // full / low .groupBegin() - .number("(dd)(dd)(dd).(d+)") // time utc (hhmmss.sss) + .number("(dd)(dd)(dd).d+") // time utc (hhmmss) .or() .number("(?:d{1,5}.d+)?") .groupEnd() @@ -263,7 +263,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { String utcHours = parser.next(); String utcMinutes = parser.next(); - dateBuilder.setTime(localHours, localMinutes, parser.nextInt(), parser.nextInt()); + dateBuilder.setTime(localHours, localMinutes, parser.nextInt()); // Timezone calculation if (utcHours != null && utcMinutes != null) { |