I am trying to get the time from GPS with Javascript
, I've found the Geolocation API
(https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API.
It give me a GeolocationPosition (https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition). But, the GeolocationPosition.timestamp
contain time info from the device. If I change the hours on it, the return change too.
I would like get the time from the GPS when I ask it. The goal is to do a kind of Chronometer on 2 devices (one for start, an other for end) but, then I do the difference. But to do that, I need to have exactly the same time on each.