diff --git a/utils/import.php b/utils/import.php index 15cbda0..49629e3 100755 --- a/utils/import.php +++ b/utils/import.php @@ -108,7 +108,7 @@ foreach ($gpx->trk as $trk) { $track->delete(); uUtils::exitWithError($lang["iparsefailure"]); } - $time = isset($point->time) ? strtotime($point->time) : 0; + $time = isset($point->time) ? strtotime($point->time) : 1; $altitude = isset($point->ele) ? (double) $point->ele : NULL; $speed = NULL; $bearing = NULL; @@ -142,4 +142,4 @@ foreach ($gpx->trk as $trk) { // return last track id and tracks count uUtils::exitWithSuccess([ "trackid" => $trackId, "trackcnt" => $trackCnt ]); -?> \ No newline at end of file +?>