mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'meshtastic': fix gps timestamp
This commit is contained in:
parent
46434d914f
commit
7ed362c49c
1 changed files with 6 additions and 1 deletions
|
|
@ -138,7 +138,12 @@ Item {
|
||||||
var coor = position.coordinate;
|
var coor = position.coordinate;
|
||||||
lat = coor.latitude
|
lat = coor.latitude
|
||||||
lon = coor.longitude
|
lon = coor.longitude
|
||||||
time = coor.timestamp ? String(coor.timestamp.getTime()) : "0"
|
if (position.timestamp) {
|
||||||
|
var stime = String(position.timestamp.getTime())
|
||||||
|
time = stime.substring(0, stime.length - 3)
|
||||||
|
} else {
|
||||||
|
time = "0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue