aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);