aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NoranProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/NoranProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/NoranProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NoranProtocolDecoder.java b/src/org/traccar/protocol/NoranProtocolDecoder.java
index dc400ff66..4cb35fee5 100644
--- a/src/org/traccar/protocol/NoranProtocolDecoder.java
+++ b/src/org/traccar/protocol/NoranProtocolDecoder.java
@@ -101,7 +101,7 @@ public class NoranProtocolDecoder extends BaseProtocolDecoder {
time.set(Calendar.YEAR, 2000 + (int) (timeValue >> 26));
time.set(Calendar.MONTH, (int) (timeValue >> 22 & 0x0f) - 1);
time.set(Calendar.DAY_OF_MONTH, (int) (timeValue >> 17 & 0x1f));
- time.set(Calendar.HOUR, (int) (timeValue >> 12 & 0x1f));
+ time.set(Calendar.HOUR_OF_DAY, (int) (timeValue >> 12 & 0x1f));
time.set(Calendar.MINUTE, (int) (timeValue >> 6 & 0x3f));
time.set(Calendar.SECOND, (int) (timeValue & 0x3f));
position.setTime(time.getTime());