server and GPS device time difference

Tasadduq Hussain7 years ago

I see difference in server time and device time received data in Traccar h2 database
Below given are the details:

Server Time :2017-09-17 18:43:36
Device Time :2017-09-17 13:43:36

I am using GPS Tracker device named TK102/TK102B.
I set the time using command "timezone12345 300" in tracker device and it's replay me correct date & time but time difference in Traccar web interface.

Log Sample is here:

2017-09-17 13:42:55 DEBUG: [F336683D: 5013 < 119.160.97.169] HEX: 2a48512c3836353230353033303533343932382c56312c3133343331312c412c333031342e31373834302c4e2c30373133342e30373635302c452c32372e35302c35372c3137303931372c4646464646424646230d0a
2017-09-17 13:42:55  INFO: [F336683D] id: 865205030534928, time: 2017-09-17 18:43:11, lat: 30.23631, lon: 71.56794, speed: 27.5, course: 57.0

Please guide me.
Best regards

Anton Tananaev7 years ago

You have to configure device to report UTC time. Traccar always expects UTC.

Tasadduq Hussain7 years ago

My timezone is UTC+05:00 (Pakistan).
For this i set command to device "timezone12345 300" means 5*60=300

Anton Tananaev7 years ago

Please read my previous comment. You have to configure it to report UTC time (which is UTC+0).

Tasadduq Hussain7 years ago

Let me try..

Tasadduq Hussain7 years ago

I configure my device timezone to UTC+0 it's work fine.
But my Tracking device time goes five hours back.

Anton Tananaev7 years ago

There is no solution for that at the moment.

Tasadduq Hussain7 years ago

Thanks.
Please consider in Traccar next release.

regards

Anton Tananaev7 years ago

For any feature requests use GitHub.

Tasadduq Hussain7 years ago

Please guide me to hide the language selecting option dropdown (combobox) in the login window/

Anton Tananaev7 years ago

If you need help with customisation please send an email to support address to discuss it.

Mohamed Shorbagi7 years ago

Hello
I have the same problem, I've set time zone to UTC and still shown different in the web client, also each device is different than the other and known that all three is TK103B and use the same H02 protocol.

Can I use the computed attribute to calculate time for each device ?

Anton Tananaev7 years ago

You can't use computed attributes for that. Server always expects UTC time from devices.

Mohamed Shorbagi7 years ago

I think the device is sending the correct UTC time to the server but now it's not updating the location in the web client

2017-09-25 15:46:30  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:74 < ...)
2017-09-25 15:46:30  INFO: [AD5C612B] id: 355488020994838, time: 2017-09-25 15:46:28, lat: 25.17231, lon: 55.40675, speed: 0.0, course: 112.0
2017-09-25 15:46:40 DEBUG: [AD5C612B: 5013 < 91.73.108.241] HEX: 2a48512c3335353438383032303939343833382c56312c3131343633382c412c323531302e33323535332c4e2c30353532342e34313539302c452c372e39362c3135302c3235303931372c4646464646424646230d0a
2017-09-25 15:46:40  INFO: [AD5C612B] id: 355488020994838, time: 2017-09-25 15:46:38, lat: 25.17209, lon: 55.40693, speed: 8.0, course: 150.0
2017-09-25 15:46:50 DEBUG: [AD5C612B: 5013 < 91.73.108.241] HEX: 2a48512c3335353438383032303939343833382c56312c3131343634382c412c323531302e33313735352c4e2c30353532342e34333837322c452c382e31302c37342c3235303931372c4646464646424646230d0a
Anton Tananaev7 years ago

Traccar won't update position if "last known" location has future time. You can either wait or re-create device.