aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:50:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:50:12 +1200
commitb6ec2e51025f34e77ee03026847232fb448d19db (patch)
tree2b8576e01acf5969ebdd13646a34c661db0f6b23 /src
parent15beffad2c83f6e5014e3a9a44692769d45b211d (diff)
downloadtraccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.tar.gz
traccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.tar.bz2
traccar-server-b6ec2e51025f34e77ee03026847232fb448d19db.zip
Improve Syrus time decoding (fix #643)
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/SyrusProtocolDecoder.java2
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);