timedelta seconds property is limited to 86400

This commit is contained in:
Sam Splunks 2024-02-13 10:31:06 +00:00
parent ab8bd7637d
commit ed6aa132f3

View File

@ -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 = ""