Fixed: Timespan over 1 month shown incorrectly

Closes #4208
pull/4193/head
Qstick 4 years ago committed by Mark McDowall
parent a2050803a2
commit cfbb4a3235

@ -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