aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-01-27 22:53:16 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-01-27 22:53:16 -0800
commit55138ee13f52e0896d4a074d838199c1a0d46147 (patch)
tree2ac8c36c1b9197121a4a98648777da68796daef7 /src/main/java/org/traccar
parent0d33868866b1d4dee89b6dff756bbbacfd58508f (diff)
downloadtrackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.tar.gz
trackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.tar.bz2
trackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.zip
Handle no-milliseconds format
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java
index 9b672cacc..2ca71a1ae 100644
--- a/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2012 - 2021 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -63,7 +63,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
.or()
.text("F,")
.groupBegin()
- .number("(dd)(dd)(dd).d+") // time utc (hhmmss)
+ .number("(dd)(dd)(dd)(?:.d+)?") // time utc (hhmmss)
.or()
.number("(?:d{1,5}.d+)?")
.groupEnd()