gt06 date decoding question

armana day ago

hi
i want to understand why this packet:

78782222190816061037c503e749dc0594f56000c4bd01b0237f92007fae010e0019d355fa0d0a

results in these date and time values:

servertime: 2025-08-22 06:16:56.786
devicetime: 2025-08-22 06:16:55
fixtime: 2025-08-22 06:16:55

checked a gt06 protocol document. according to that, 190816061037 is date part and decodes to 2019-08-16T06:10:37. so why it differ ? am i wrong ?
i use traccar version 5 and time.override is not applied.

Sreekanth19 hours ago

As per protocol document

Date Time
Length is :6
Year(1byte)Month(1byte)Day(1byte)Hour(1byte)Min(1byte)Second(1byte)
(converted to decimal)(Date Time)

That means each hex byte is converted directly to decimal (not BCD). Converting gives:

0x19 → 25 → year = 2000 + 25 = 2025
0x08 → 8 → month = 08
0x16 → 22 → day = 22
0x06 → 6 → hour = 06
0x10 → 16 → minute = 16
0x37 → 55 → second = 55

Fix time: 2025-08-22 06:16:55

arman19 hours ago

that was a silly question on my part. thanks for clearing it up