1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-19 11:30:44 +02:00

bangle.js: Use GPS location time, when reporting gps events, instead of the time at transmission.

This commit is contained in:
illis 2023-08-30 19:16:30 +12:00
parent 2051ce2055
commit 600658d86b

View File

@ -1088,7 +1088,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
o.put("alt", location.getAltitude());
o.put("speed", location.getSpeed());
if (location.hasBearing()) o.put("course", location.getBearing());
o.put("time", new Date().getTime());
o.put("time", location.getTime());
if (location.getExtras() != null) {
LOG.debug("Found number of satellites: " + location.getExtras().getInt("satellites", -1));
o.put("satellites",location.getExtras().getInt("satellites"));