adds trail date to api upload

This commit is contained in:
Christian Beutel
2024-04-15 17:55:49 +02:00
parent 8c3cda919b
commit 4c3fc8cab6

View File

@@ -62,6 +62,10 @@ export async function gpx2trail(gpx: string) {
if (startTime && endTime) {
totalDuration += endTime.getTime() - startTime.getTime();
if (!trail.date) {
trail.date = startTime.toISOString()
.substring(0, 10);
}
}
}