From 5538985fe1321de79a24d8c1c625ebeba52dbd1d Mon Sep 17 00:00:00 2001 From: AmatorAVG <70569509+AmatorAVG@users.noreply.github.com> Date: Wed, 20 Oct 2021 14:18:38 +0700 Subject: [PATCH] Update models.py fix minutes representation in format_time_spent --- 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 = ""