converts trail duration to seconds

This commit is contained in:
Christian Beutel
2025-06-25 15:59:56 +02:00
parent 4ab112e61b
commit 54d7357603
10 changed files with 57 additions and 15 deletions

View File

@@ -858,7 +858,7 @@
overwriteGPX = true;
const totals = route.features;
$formData.distance = totals.distance;
$formData.duration = totals.duration / 1000 / 60;
$formData.duration = totals.duration / 1000;
$formData.elevation_gain = totals.elevationGain;
$formData.elevation_loss = totals.elevationLoss;
$formData.expand!.gpx_data = route.toString();