1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Bangle.js:actTrk: fix activity point times

This commit is contained in:
Ganblejs 2024-03-18 22:14:20 +01:00 committed by José Rebelo
parent f0826286dc
commit cd2535f49a

View File

@ -544,7 +544,7 @@ class BangleJSActivityTrack {
boolean hasHRMReading = false;
for (int i = 0; i < storedLogObject.getJSONArray("Time").length(); i++) {
timeOfPoint.setTime(storedLogObject.getJSONArray("Time").getLong(i)*1000L);
point.setTime(timeOfPoint);
point.setTime((Date) timeOfPoint.clone());
if (storedLogObject.has("Longitude")) {
if (!Objects.equals(storedLogObject.getJSONArray("Longitude").getString(i), "")
&& !Objects.equals(storedLogObject.getJSONArray("Latitude").getString(i), "")