mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Fixed: formatTimeSpan shows incorrect when over 1 month
This commit is contained in:
parent
1c892d7357
commit
d86402efb1
@ -7,7 +7,8 @@ function formatTimeSpan(timeSpan) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const duration = moment.duration(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 hours = padNumber(duration.get('hours'), 2);
|
||||||
const minutes = padNumber(duration.get('minutes'), 2);
|
const minutes = padNumber(duration.get('minutes'), 2);
|
||||||
const seconds = padNumber(duration.get('seconds'), 2);
|
const seconds = padNumber(duration.get('seconds'), 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user