aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/M2mProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:27:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-04-08 20:27:27 +1200
commit53672c02969da6208a92c43059147ca3c5d8653a (patch)
treea14300850ca3c24ee0dbab11e0056d43cdbf992f /src/org/traccar/protocol/M2mProtocolDecoder.java
parent91a9a07188bf919f8ec92b139623dbd300e4f359 (diff)
downloadtrackermap-server-53672c02969da6208a92c43059147ca3c5d8653a.tar.gz
trackermap-server-53672c02969da6208a92c43059147ca3c5d8653a.tar.bz2
trackermap-server-53672c02969da6208a92c43059147ca3c5d8653a.zip
Replace HOUR with HOUR_OF_DAY
Diffstat (limited to 'src/org/traccar/protocol/M2mProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/M2mProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/M2mProtocolDecoder.java b/src/org/traccar/protocol/M2mProtocolDecoder.java
index 71ed026ed..f54934536 100644
--- a/src/org/traccar/protocol/M2mProtocolDecoder.java
+++ b/src/org/traccar/protocol/M2mProtocolDecoder.java
@@ -84,7 +84,7 @@ public class M2mProtocolDecoder extends BaseProtocolDecoder {
time.set(Calendar.DAY_OF_MONTH, buf.readUnsignedByte() & 0x3f);
time.set(Calendar.MONTH, (buf.readUnsignedByte() & 0x3f) - 1);
time.set(Calendar.YEAR, 2000 + buf.readUnsignedByte());
- time.set(Calendar.HOUR, buf.readUnsignedByte() & 0x3f);
+ time.set(Calendar.HOUR_OF_DAY, buf.readUnsignedByte() & 0x3f);
time.set(Calendar.MINUTE, buf.readUnsignedByte() & 0x7f);
time.set(Calendar.SECOND, buf.readUnsignedByte() & 0x7f);
position.setTime(time.getTime());