glennreyes / runtastic-gpx

💪 Convert Runtastic JSON exports to GPX
https://runalyze.com/runtastic-converter
27 stars 11 forks source link

Use date and activity name in filename #9

Closed pskt closed 5 years ago

pskt commented 5 years ago

Fixes #8

Exported file name will be in yyyymmdd_hhmm_activity.gpx form (similar to files downloaded from Runtastic page)

mipapo commented 5 years ago

Sorry for the late response. I will check that during the day.

mipapo commented 5 years ago

@pskt How about using a function like function pad(n){return n<10 ? '0'+n : n} to reduce the duplicate code for adding a leading zero?

mipapo commented 5 years ago

Thanks for Contributing @pskt !