aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SmokeyProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-04 06:38:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-04 05:38:14 +1300
commit453230c4eedd460c6a09d81c462ca36abdbf94a3 (patch)
treea5df66c91ee79923de4d53ce1b62c2e4a693309f /src/org/traccar/protocol/SmokeyProtocolDecoder.java
parent771dad06ea52f473654bebc8c419060665e5f55d (diff)
downloadtrackermap-server-453230c4eedd460c6a09d81c462ca36abdbf94a3.tar.gz
trackermap-server-453230c4eedd460c6a09d81c462ca36abdbf94a3.tar.bz2
trackermap-server-453230c4eedd460c6a09d81c462ca36abdbf94a3.zip
Respond with UTC time value
Diffstat (limited to 'src/org/traccar/protocol/SmokeyProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/SmokeyProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SmokeyProtocolDecoder.java b/src/org/traccar/protocol/SmokeyProtocolDecoder.java
index bcae089fb..37010d281 100644
--- a/src/org/traccar/protocol/SmokeyProtocolDecoder.java
+++ b/src/org/traccar/protocol/SmokeyProtocolDecoder.java
@@ -19,6 +19,7 @@ import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.joda.time.DateTime;
+import org.joda.time.DateTimeZone;
import org.joda.time.Seconds;
import org.traccar.BaseProtocolDecoder;
import org.traccar.DeviceSession;
@@ -49,8 +50,8 @@ public class SmokeyProtocolDecoder extends BaseProtocolDecoder {
response.writeByte(3); // protocol version
response.writeByte(MSG_DATE_RECORD_ACK);
response.writeBytes(id);
- response.writeInt(
- Seconds.secondsBetween(new DateTime(2000, 1, 1, 0, 0), new DateTime()).getSeconds());
+ response.writeInt(Seconds.secondsBetween(
+ new DateTime(2000, 1, 1, 0, 0, DateTimeZone.UTC), new DateTime(DateTimeZone.UTC)).getSeconds());
response.writeByte(index);
response.writeByte(report - 0x200);