aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-17 10:05:40 -0400
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-17 18:44:18 -0400
commitee834a1f70431e25063f929af6fe4eff4e27e6c0 (patch)
tree55eb9ef56ce57e068f644514e6e1dc2ebd9d3ba1 /src/org/traccar
parent141b92c1f93d59d72e442295f355136658c11e16 (diff)
downloadtrackermap-server-ee834a1f70431e25063f929af6fe4eff4e27e6c0.tar.gz
trackermap-server-ee834a1f70431e25063f929af6fe4eff4e27e6c0.tar.bz2
trackermap-server-ee834a1f70431e25063f929af6fe4eff4e27e6c0.zip
Removed capture of milliseconds in Homtecs protocol; The *one* test position has 2 digits instead of 3; Access to documentation online and/or more test positions are needed to safely implement the capture of milliseconds;
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/HomtecsProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HomtecsProtocolDecoder.java b/src/org/traccar/protocol/HomtecsProtocolDecoder.java
index 846df0b66..2557e1ac7 100644
--- a/src/org/traccar/protocol/HomtecsProtocolDecoder.java
+++ b/src/org/traccar/protocol/HomtecsProtocolDecoder.java
@@ -34,7 +34,7 @@ public class HomtecsProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern PATTERN = new PatternBuilder()
.expression("([^,]+),") // id
.number("(dd)(dd)(dd),") // date (yymmdd)
- .number("(dd)(dd)(dd).(d+),") // time (hhmmss.ms)
+ .number("(dd)(dd)(dd).d+,") // time (hhmmss)
.number("(d+),") // satellites
.number("(dd)(dd.d+),") // latitude
.expression("([NS]),")
@@ -63,7 +63,7 @@ public class HomtecsProtocolDecoder extends BaseProtocolDecoder {
}
position.setDeviceId(deviceSession.getDeviceId());
- position.setTime(parser.nextDateTime(Parser.DateTimeFormat.YMD_HMSS));
+ position.setTime(parser.nextDateTime(Parser.DateTimeFormat.YMD_HMS));
position.setValid(true);
position.set(Position.KEY_SATELLITES, parser.nextInt());