diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-08 20:50:12 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-04-08 20:50:12 +1200 |
commit | b6ec2e51025f34e77ee03026847232fb448d19db (patch) | |
tree | 2b8576e01acf5969ebdd13646a34c661db0f6b23 /src/org/traccar/protocol | |
parent | 15beffad2c83f6e5014e3a9a44692769d45b211d (diff) | |
download | traccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.tar.gz traccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.tar.bz2 traccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.zip |
Improve Syrus time decoding (fix #643)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/SyrusProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java index bafeca6e4..0d61daf82 100644 --- a/src/org/traccar/protocol/SyrusProtocolDecoder.java +++ b/src/org/traccar/protocol/SyrusProtocolDecoder.java @@ -77,6 +77,8 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder { if (diff > 12 * 60 * 60 * 1000) { millis += 24 * 60 * 60 * 1000; + } else if (diff < -12 * 60 * 60 * 1000) { + millis -= 24 * 60 * 60 * 1000; } return new Date(millis); |