mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-27 00:59:00 +01:00
timedelta seconds property is limited to 86400
This commit is contained in:
parent
ab8bd7637d
commit
ed6aa132f3
@ -36,8 +36,8 @@ import uuid
|
||||
def format_time_spent(time_spent):
|
||||
if time_spent:
|
||||
time_spent = "{0:02d}h:{1:02d}m".format(
|
||||
time_spent.seconds // 3600,
|
||||
time_spent.seconds % 3600 // 60
|
||||
int(time_spent.total_seconds()) // 3600,
|
||||
int(time_spent.total_seconds()) % 3600 // 60
|
||||
)
|
||||
else:
|
||||
time_spent = ""
|
||||
|
Loading…
Reference in New Issue
Block a user