From b6ec2e51025f34e77ee03026847232fb448d19db Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 8 Apr 2014 20:50:12 +1200 Subject: Improve Syrus time decoding (fix #643) --- src/org/traccar/protocol/SyrusProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/org/traccar') 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); -- cgit v1.2.3