Time in future

diggah9 years ago

How to block/fix "time in future" - wrnog time received from GPS.

gps103 protocol.

Anton Tananaev9 years ago

If GPS locations are marked as invalid, you can filter them using filter.invalid in the config.

diggah9 years ago

they are all marked as valid. (valid = 1)

lemon9 years ago

Hi!

I have also a time problem. Although in the long the right time is received, in the web interface I see the time 2 hours in the future (my devices are configuered with timezone +2).
With traccar 2.x I didn't have this problem.
How can I fix it?

Thank you very much!!!

Anton Tananaev9 years ago

What device are you using? Traccar almost always expects UTC time from devices.

lemon9 years ago

Hi Anton,

I always had my devices with "timezone +2" set with the previous 2.x versions of Traccar.
I use a TK104 and a TK103A, I think they are from Coban, not sure.

Anton Tananaev9 years ago

There were no changes in time zone handling, so it should work the same. What port are you using? If you are using GT06 protocol, are/were you setting timezone in the config?

Also, it would be helpful to see the actual log messages.

lemon9 years ago

I use port 5001 for both.

Here are the log entries for now (it's 23:26 here in Italy).

2015-09-29 23:25:55 DEBUG: [5E8AF517: 5001 <- 94.35.181.220] - HEX: 696d65693a3335393731303034303832333139382c747261636b65722c313530393239323332352c2c462c3231323535322e3030302c412c343632382e363834362c4e2c30313131362e303931362c452c302e30302c303b
2015-09-29 23:25:55  INFO: device: 1, time: Tue Sep 29 23:25:52 CEST 2015, lat: xx.xxxxxxxxx, lon: xx.xxxxxxxxx
2015-09-29 23:25:55 DEBUG: [F5CB6F85: 5001 <- 94.35.153.140] - HEX: 696d65693a3335393731303034343236353534352c747261636b65722c313530393239323332352c2c462c3231323535322e3030302c412c343632382e363837322c4e2c30313131362e303836342c452c302e30302c303b
2015-09-29 23:25:55  INFO: device: 2, time: Tue Sep 29 23:25:52 CEST 2015, lat: xx.xxxxxxxxx2, lon: xx.xxxxxxxxx

Obviously instead of xx.xxxxxxxxx there are the correct GPS positions.

Anton Tananaev9 years ago

Looks like everything is decoded correctly. I guess there is some problem with browser/web interface if the time zone is incorrect there.

Can I see messages from the future as well?

lemon9 years ago

What do you mean? Do you want to see the web interface?

Anton Tananaev9 years ago

No, I want to see log messages with wrong (future) time.

lemon9 years ago

There aren't, they are all with the right time in the log, the future time is visible only in the web interface, it seems the interface converts the time and adds 2 hours by himself.

Anton Tananaev9 years ago

Can I have an access to the web interface to check? You can send details to my email (address is at the bottom of the page).