Fixed: Timespan over 1 month shown incorrectly

(cherry picked from commit cfbb4a32351fca2e6d3154c6d26c39b5205e0fe3)
pull/697/head
Qstick 4 years ago
parent 50f9f6e884
commit f23f1afa2c

@ -7,7 +7,8 @@ function formatTimeSpan(timeSpan) {
}
const duration = moment.duration(timeSpan);
const days = duration.get('days');
const days = Math.floor(duration.asDays());
const hours = padNumber(duration.get('hours'), 2);
const minutes = padNumber(duration.get('minutes'), 2);
const seconds = padNumber(duration.get('seconds'), 2);

Loading…
Cancel
Save