From: anuko Date: Mon, 25 Dec 2017 13:51:09 +0000 (+0000) Subject: A little formatting fix to keep totals on week view nicer. X-Git-Tag: timetracker_1.19-1~1441 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5d1ba7b0e49a18115a754b9e64415940a56d7b1b;p=timetracker.git A little formatting fix to keep totals on week view nicer. --- diff --git a/WEB-INF/lib/ttTimeHelper.class.php b/WEB-INF/lib/ttTimeHelper.class.php index 48ebdc91..f5edc5fa 100644 --- a/WEB-INF/lib/ttTimeHelper.class.php +++ b/WEB-INF/lib/ttTimeHelper.class.php @@ -160,13 +160,11 @@ class ttTimeHelper { return (int)@$time_a[1] + ((int)@$time_a[0]) * 60; } - // toAbsDuration - converts a number of minutes to format 00:00 + // toAbsDuration - converts a number of minutes to format 0:00 // even if $minutes is negative. static function toAbsDuration($minutes){ $hours = (string)((int)abs($minutes / 60)); $mins = (string)(abs($minutes % 60)); - if (strlen($hours) == 1) - $hours = '0'.$hours; if (strlen($mins) == 1) $mins = '0' . $mins; return $hours.':'.$mins; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 04af17ed..25463625 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.12.3.3688 | Copyright © Anuko | +  Anuko Time Tracker 1.12.3.3689 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}