mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Timespan over 1 month shown incorrectly
(cherry picked from commit cfbb4a32351fca2e6d3154c6d26c39b5205e0fe3)
This commit is contained in:
parent
bb8ec05650
commit
118be1fdf4
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue