diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-27 22:53:16 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-27 22:53:16 -0800 |
commit | 55138ee13f52e0896d4a074d838199c1a0d46147 (patch) | |
tree | 2ac8c36c1b9197121a4a98648777da68796daef7 /src/main/java | |
parent | 0d33868866b1d4dee89b6dff756bbbacfd58508f (diff) | |
download | trackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.tar.gz trackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.tar.bz2 trackermap-server-55138ee13f52e0896d4a074d838199c1a0d46147.zip |
Handle no-milliseconds format
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java | 4 |
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() |