Account for duration days in timers.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-21 18:44:47 -04:00
parent c0b38f3790
commit d659fc26e4
1 changed files with 1 additions and 0 deletions

View File

@ -49,5 +49,6 @@ def _get_hms(duration):
if not isinstance(duration, timedelta):
return 0, 0, 0
h, remainder = divmod(duration.seconds, 3600)
h += duration.days * 24
m, s = divmod(remainder, 60)
return h, m, s