diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 10:16:58 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 10:16:58 +1300 |
commit | 8550dc61aa70fea96cc73fc57969b8e0c4fab339 (patch) | |
tree | c07b1b7ac5c4f56e87e667a7d85ada48907fb821 /src/org/traccar/protocol/TaipProtocolDecoder.java | |
parent | 9034cd07e95320a37a0f788ee6eaa546af5f4df1 (diff) | |
download | trackermap-server-8550dc61aa70fea96cc73fc57969b8e0c4fab339.tar.gz trackermap-server-8550dc61aa70fea96cc73fc57969b8e0c4fab339.tar.bz2 trackermap-server-8550dc61aa70fea96cc73fc57969b8e0c4fab339.zip |
Replace object with system method
Diffstat (limited to 'src/org/traccar/protocol/TaipProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TaipProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TaipProtocolDecoder.java b/src/org/traccar/protocol/TaipProtocolDecoder.java index 8c1448193..252f4e712 100644 --- a/src/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/org/traccar/protocol/TaipProtocolDecoder.java @@ -75,7 +75,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { long millis = time.getTimeInMillis() + seconds * 1000; - long diff = new Date().getTime() - millis; + long diff = System.currentTimeMillis() - millis; if (diff > 12 * 60 * 60 * 1000) { millis += 24 * 60 * 60 * 1000; |