aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/EasyTrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/EasyTrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
index 7152955f5..4b0080267 100644
--- a/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/EasyTrackProtocolDecoder.java
@@ -99,7 +99,7 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder {
time.set(Calendar.YEAR, 2000 + Integer.parseInt(parser.group(index++), 16));
time.set(Calendar.MONTH, Integer.parseInt(parser.group(index++), 16) - 1);
time.set(Calendar.DAY_OF_MONTH, Integer.parseInt(parser.group(index++), 16));
- time.set(Calendar.HOUR, Integer.parseInt(parser.group(index++), 16));
+ time.set(Calendar.HOUR_OF_DAY, Integer.parseInt(parser.group(index++), 16));
time.set(Calendar.MINUTE, Integer.parseInt(parser.group(index++), 16));
time.set(Calendar.SECOND, Integer.parseInt(parser.group(index++), 16));
position.setTime(time.getTime());