diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-16 07:12:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-16 07:12:47 -0700 |
commit | 6a39fec53770002149d70ba3b09b8bf1f03a5780 (patch) | |
tree | 7ad968f047f3e3cdf3f24aa6bb4965660ff2ce1b /src/main | |
parent | 27e8b2f8b24b12ddc4662c5559419d72755bbf08 (diff) | |
download | trackermap-server-6a39fec53770002149d70ba3b09b8bf1f03a5780.tar.gz trackermap-server-6a39fec53770002149d70ba3b09b8bf1f03a5780.tar.bz2 trackermap-server-6a39fec53770002149d70ba3b09b8bf1f03a5780.zip |
Remove misused timezone
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/AustinNbProtocolDecoder.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/AustinNbProtocolDecoder.java b/src/main/java/org/traccar/protocol/AustinNbProtocolDecoder.java index 92dae7285..b07b94e20 100644 --- a/src/main/java/org/traccar/protocol/AustinNbProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/AustinNbProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2018 - 2022 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. @@ -24,7 +24,6 @@ import org.traccar.helper.PatternBuilder; import org.traccar.model.Position; import java.net.SocketAddress; -import java.util.TimeZone; import java.util.regex.Pattern; public class AustinNbProtocolDecoder extends BaseProtocolDecoder { @@ -64,7 +63,7 @@ public class AustinNbProtocolDecoder extends BaseProtocolDecoder { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); - position.setTime(parser.nextDateTime(Parser.DateTimeFormat.YMD_HMS, TimeZone.getDefault().getID())); + position.setTime(parser.nextDateTime()); position.setValid(true); position.setLatitude(Double.parseDouble(parser.next().replace(',', '.'))); |