From 55138ee13f52e0896d4a074d838199c1a0d46147 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 27 Jan 2021 22:53:16 -0800 Subject: Handle no-milliseconds format --- src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar') 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() -- cgit v1.2.3