diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-16 07:13:21 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-16 07:13:21 -0700 |
commit | 80bbf6e1b1903ba9218245c4fe94e5b482b59dad (patch) | |
tree | 146ed4594562fa4e7daad7ec7d1390c7b66e824f /src | |
parent | 6a39fec53770002149d70ba3b09b8bf1f03a5780 (diff) | |
download | trackermap-server-80bbf6e1b1903ba9218245c4fe94e5b482b59dad.tar.gz trackermap-server-80bbf6e1b1903ba9218245c4fe94e5b482b59dad.tar.bz2 trackermap-server-80bbf6e1b1903ba9218245c4fe94e5b482b59dad.zip |
Support ITS custom timezone (fix #4232)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/ItsProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java b/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java index 1ed9a7d8c..8a8d734cf 100644 --- a/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/ItsProtocolDecoder.java @@ -205,7 +205,8 @@ public class ItsProtocolDecoder extends BaseProtocolDecoder { if (parser.hasNext()) { position.setValid(parser.nextInt() == 1); } - position.setTime(parser.nextDateTime(Parser.DateTimeFormat.DMY_HMS)); + position.setTime(parser.nextDateTime( + Parser.DateTimeFormat.DMY_HMS, getTimeZone(deviceSession.getDeviceId()).getID())); if (parser.hasNext()) { position.setValid(parser.next().matches("[1A]")); } |