adds trail date to api upload
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user