From: Nik Okuntseff Date: Fri, 19 Apr 2019 22:53:56 +0000 (+0000) Subject: Fixed totals for 0 hours to not have minus sign. X-Git-Tag: timetracker_1.19-1~66 X-Git-Url: http://wagnertech.de/git?p=timetracker.git;a=commitdiff_plain;h=ed499fa49d8dad66119752b4cfe213d30da2bed6 Fixed totals for 0 hours to not have minus sign. --- 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}