aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TaipProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/TaipProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TaipProtocolDecoder.java2
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;