I am using gt06 gps device which sending time in utc format. My server timezone is IST. In traccar server settings/accounts page also I have selected IST timezone. Following is the log of gps device
2023-06-13 12:48:42 INFO: [T9eef2110: gt06 < 110.224.47.84] 787811010866567066749525101c212301a3f1700d0a
2023-06-13 12:48:42 INFO: [T9eef2110: gt06 > 110.224.47.84] 7878050101a3461c0d0a
2023-06-13 12:48:43 INFO: [T9eef2110: gt06 < 110.224.47.84] 78780a13000401000301a35f220d0a
2023-06-13 12:48:43 INFO: [T9eef2110: gt06 > 110.224.47.84] 7878051301a376310d0a
2023-06-13 12:48:43 INFO: [T9eef2110] id: ********, time: 2023-06-13 07:17:49, lat: 26.97398, lon: 77.94223, course: 304.0
2023-06-13 12:48:43 INFO: [T9eef2110: gt06 < 110.224.47.84] 7878191017060d0712320b02e4dcb7085cbf87021571000301a37d380d0a
2023-06-13 12:48:43 INFO: [T9eef2110: gt06 > 110.224.47.84] 7878051001a399550d0a
2023-06-13 12:48:43 INFO: [T9eef2110] id: ********, time: 2023-06-13 07:18:50, lat: 26.97397, lon: 77.94226, speed: 1.1, course: 369.0
MySql database entry
servertime devicetime fixtime
2088663 gt06 424 2023-06-13 07:17:26 2023-06-13 01:47:49 2023-06-13 01:47:49 1 26.97397666666667 77.94223166666667
2088734 gt06 424 2023-06-13 07:18:43 2023-06-13 07:18:43 2023-06-13 01:47:49 1 26.97397666666667 77.94223166666667
2088735 gt06 424 2023-06-13 07:18:43 2023-06-13 01:48:50 2023-06-13 01:48:50 1 26.973968333333335 77.94226166666667
2088774 gt06 424 2023-06-13 07:19:26 2023-06-13 07:19:26 2023-06-13 01:48:50 1 26.973968333333335 77.94226166666667
My problem is that in database it's getting recorded as GMT-5:30 instead of GMT+5:30. As we can see 1 entry in database has devicetime has GMT time while other has GMT-5:30. Can somebody help why is this happening? Some wrong setting?
Have you checked the HEX data to confirm what timezone your device is sending?
yes it's sending UTC time. For example
78781910 17 06 0d 07 12 32 0b02e4dcb7085cbf87021571000301a37d380d0a
17 -- 23
06 -- 06
0d -- 13
07 -- 07
12 -- 18
32 -- 50
Time send by packet 07:18:50 UTC which was received by server at 2023-06-13 12:48:43 IST. Thus packet is sending UTC time.
Thanks for your reply. The device is sending IST timezone in login message. I suppose it should be sending UTC timezone in login packet also. That's why it is getting stored in database as GMT-5:30 instead of GMT+5:30.
Since now I can't change device firmware can following setting in configuration file resolve this issue
<entry key='decoder.timezone'>19800</entry>
Forcing the timezone in the config should fix the issue, but you need to match the timezone your device is actually sending the time in. In your case it's UTC.
But in general it looks like a device firmware.
I am using gt06 gps device which sending time in utc format. My server timezone is IST. In traccar server settings/accounts page also I have selected IST timezone. Following is the log of gps device
MySql database entry
My problem is that in database it's getting recorded as GMT-5:30 instead of GMT+5:30. As we can see 1 entry in database has devicetime has GMT time while other has GMT-5:30. Can somebody help why is this happening? Some wrong setting?