Fixed a bug with Monthly Quota plugin.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index f378d0c..f98d675 100644 (file)
@@ -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;