Fix scheduler table displaying intervals greater than 24 hours

This commit is contained in:
JonnyWong16 2019-04-27 16:58:23 -07:00
parent 81d443f34c
commit ce4bfd56c2
2 changed files with 15 additions and 8 deletions

View file

@ -252,6 +252,14 @@ def human_duration(s, sig='dhms'):
return hd
def format_timedelta_Hms(td):
s = td.total_seconds()
hours = s // 3600
minutes = (s % 3600) // 60
seconds = s % 60
return '{:02d}:{:02d}:{:02d}'.format(int(hours), int(minutes), int(seconds))
def get_age(date):
try: