From a267419f74fbf3edec732743f52fdeffd694a0a2 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 19 Feb 2023 20:37:25 +0100 Subject: [PATCH] android - Fix type for time value --- apps/android/boot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/android/boot.js b/apps/android/boot.js index 21882adc4..cdd8b2a6b 100644 --- a/apps/android/boot.js +++ b/apps/android/boot.js @@ -150,6 +150,9 @@ event.lon = event.long; delete event.long; } + if (event.time){ + event.time = new Date(event.time); + } if (!gpsState.firstGPSEvent) { // this is the first event, save time of arrival and deactivate internal GPS @@ -344,4 +347,4 @@ // remove settings object so it's not taking up RAM delete settings; -})(); \ No newline at end of file +})();