mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix scheduler table displaying intervals greater than 24 hours
This commit is contained in:
parent
81d443f34c
commit
ce4bfd56c2
2 changed files with 15 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue