1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-23 08:15:27 +00:00

Fixed: Timespan over 1 month shown incorrectly

Closes #4208
This commit is contained in:
Qstick 2020-10-04 23:38:10 -04:00 committed by Mark McDowall
parent a2050803a2
commit cfbb4a3235

View file

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