diff options
Diffstat (limited to 'fietsboek/convert.py')
| -rw-r--r-- | fietsboek/convert.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fietsboek/convert.py b/fietsboek/convert.py index 04c7e73..7815ef4 100644 --- a/fietsboek/convert.py +++ b/fietsboek/convert.py @@ -78,7 +78,10 @@ def from_gpx(data: bytes) -> Track: if start_time is None: start_time = point.time - time_offset = (point.time - start_time).total_seconds() + if point.time is not None and start_time is not None: + time_offset = (point.time - start_time).total_seconds() + else: + time_offset = 0 points.append(geo.Point( longitude=point.longitude, latitude=point.latitude, |
