aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-22 19:41:14 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-22 19:41:14 +1200
commitba82047a492be54545961716814584d8880d28ae (patch)
tree5d7719b2a99ba18b20e8cad537f95424406c9cb2 /src/org
parentabe8232585103b9e4856a4eabb0df122c17db052 (diff)
downloadtrackermap-server-ba82047a492be54545961716814584d8880d28ae.tar.gz
trackermap-server-ba82047a492be54545961716814584d8880d28ae.tar.bz2
trackermap-server-ba82047a492be54545961716814584d8880d28ae.zip
Fix code style issue
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Jt600ProtocolDecoder.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
index 3b68cd82a..f76fd8069 100644
--- a/src/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -76,8 +76,12 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
DateBuilder dateBuilder = new DateBuilder()
- .setDateReverse(BcdUtil.readInteger(buf, 2), BcdUtil.readInteger(buf, 2), BcdUtil.readInteger(buf, 2))
- .setTime(BcdUtil.readInteger(buf, 2), BcdUtil.readInteger(buf, 2), BcdUtil.readInteger(buf, 2));
+ .setDay(BcdUtil.readInteger(buf, 2))
+ .setMonth(BcdUtil.readInteger(buf, 2))
+ .setYear(BcdUtil.readInteger(buf, 2))
+ .setHour(BcdUtil.readInteger(buf, 2))
+ .setMinute(BcdUtil.readInteger(buf, 2))
+ .setSecond(BcdUtil.readInteger(buf, 2));
position.setTime(dateBuilder.getDate());
double latitude = convertCoordinate(BcdUtil.readInteger(buf, 8));