Times from the positions API

Gantz6 years ago

hi,
im having a bit of a trouble with the json i get from the positions request, im getting the time in this format "serverTime":"2017-11-30T17:41:27.000+0000","deviceTime":"2017-11-30T17:41:24.000+0000","fixTime":"2017-11-30T17:41:24.000+0000" which does not match my local time, does any one knows how to fix this?

Thanks in advance.

Anton Tananaev6 years ago

It's ISO format with timezone. It's UTC time, as you can see from the offset. If UTC is not your local time, then you can easily convert it to local. Usually it can be done automatically in JavaScript or whatever other language you are using.