From 66db68481971d07cb2c8d369cf195aca6fd5e5b1 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Fri, 25 Aug 2017 13:05:48 +0200 Subject: [PATCH] Allow importing tracks with no timestamp (will set to 0) --- utils/import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/import.php b/utils/import.php index eec3b09..68dec28 100755 --- a/utils/import.php +++ b/utils/import.php @@ -96,7 +96,7 @@ foreach ($gpx->trk as $trk) { foreach($trk->trkseg as $segment) { foreach($segment->trkpt as $point) { - $time = isset($point->time) ? strtotime($point->time) : NULL; + $time = isset($point->time) ? strtotime($point->time) : 0; $altitude = isset($point->ele) ? (double) $point->ele : NULL; $speed = NULL; $bearing = NULL;