X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2FttTimeHelper.class.php;h=f98d67572febece955e7a115f46f86a93e4587b1;hb=1c2cf98a7a062d53e6988f042da2530e1f5d172e;hp=f378d0c0a255dd5a732369b6378ba4382a3be29c;hpb=b76e427286701104c84a869461ceb7339b1b943a;p=timetracker.git diff --git a/WEB-INF/lib/ttTimeHelper.class.php b/WEB-INF/lib/ttTimeHelper.class.php index f378d0c0..f98d6757 100644 --- a/WEB-INF/lib/ttTimeHelper.class.php +++ b/WEB-INF/lib/ttTimeHelper.class.php @@ -148,7 +148,7 @@ class ttTimeHelper { // fromMinutes - converts a number of minutes to format 00:00 static function fromMinutes($minutes){ - $hours = (string)((int)($minutes / 60)); + $hours = (string)((int)abs($minutes / 60)); $mins = (string)(abs($minutes % 60)); if (strlen($hours) == 1) $hours = '0'.$hours;