bluefootedtiming / Runway

Connect RFID tag readers to RunScore
MIT License
2 stars 1 forks source link

Times are formatted incorrectly in the CSV backup file. #9

Closed roblingle closed 6 years ago

roblingle commented 6 years ago

The formatting at https://github.com/bluefootedtiming/Runway/blob/master/app/server/index.js#L247 doesn't use zero-padding, so "1 hour, 5 minutes, 3 second, 1 millisecond" would look like "1:5:3:1"

Currently:

const elapsed = moment.duration(moment.now() - startTime);
...
newData[2] = `${elapsed.hours()}:${elapsed.minutes()}:${elapsed.seconds()}.${elapsed.milliseconds()}`;