From e016e6699d5ab96682785a7f5c3b9c3e2003708e Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Wed, 20 Oct 2021 08:11:08 -0400 Subject: [PATCH] fix minutes representation in models.py, see #978 --- helpdesk/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 8610f85b..7f18cf20 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -39,7 +39,7 @@ 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 // 60 + time_spent.seconds % 3600 // 60 ) else: time_spent = ""