From ed499fa49d8dad66119752b4cfe213d30da2bed6 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 19 Apr 2019 22:53:56 +0000 Subject: [PATCH] Fixed totals for 0 hours to not have minus sign. --- WEB-INF/lib/ttTimeHelper.class.php | 2 +- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB-INF/lib/ttTimeHelper.class.php b/WEB-INF/lib/ttTimeHelper.class.php index 3cef8b44..8142a266 100644 --- a/WEB-INF/lib/ttTimeHelper.class.php +++ b/WEB-INF/lib/ttTimeHelper.class.php @@ -173,7 +173,7 @@ class ttTimeHelper { // minutesToDuration converts an integer number of minutes into duration string. // Formats returned HH:MM, HHH:MM, HH, or HHH. static function minutesToDuration($minutes, $abbreviate = false) { - $sign = $minutes > 0 ? '' : '-'; + $sign = $minutes >= 0 ? '' : '-'; $minutes = abs($minutes); $hours = (string) (int)($minutes / 60); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index b41511a0..e0684a67 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.19.1.4963 | Copyright © Anuko | +  Anuko Time Tracker 1.19.1.4964 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1