aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-09-20 07:46:27 -0700
committerAnton Tananaev <anton@traccar.org>2023-09-20 07:46:27 -0700
commita9c311855a495901935c2cb70252fa917fd88232 (patch)
tree6e5c80ceb0739265adccd1c5c69ef33afb005fd3 /src/main/java/org/traccar/protocol
parent7ce4fb9a628f1875ee7b616bbd3a03a6be008a0d (diff)
downloadtrackermap-server-a9c311855a495901935c2cb70252fa917fd88232.tar.gz
trackermap-server-a9c311855a495901935c2cb70252fa917fd88232.tar.bz2
trackermap-server-a9c311855a495901935c2cb70252fa917fd88232.zip
Fix PUI date format
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/PuiProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/PuiProtocolDecoder.java b/src/main/java/org/traccar/protocol/PuiProtocolDecoder.java
index a80af65fb..f10ff3fe7 100644
--- a/src/main/java/org/traccar/protocol/PuiProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PuiProtocolDecoder.java
@@ -51,7 +51,7 @@ public class PuiProtocolDecoder extends BaseMqttProtocolDecoder {
position.setValid(true);
- DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd'T'HHmmss.SSS'Z'");
+ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
position.setTime(dateFormat.parse(json.getString("ts")));
JsonObject location = json.getJsonObject("location");