X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttReportHelper.class.php;h=5fd2253177e36ad094b0c54a6ba1104cf1757d73;hb=87a40bf7dc910c008aa6aadf8882b070ad120c39;hp=9c6dfb0fe04c27eae0ed9d5a788e1721a65840a3;hpb=189e8b9874d89f3d5be5b3dd2f32d4e2e5d7e1f5;p=timetracker.git diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index 9c6dfb0f..5fd22531 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -513,7 +513,7 @@ class ttReportHelper { $res = $mdb2->query($sql); if (is_a($res, 'PEAR_Error')) die($res->getMessage()); while ($val = $res->fetchRow()) { - $time = $val['time'] ? sec_to_time_fmt_hm($val['time']) : null; + $time = $val['time'] ? ttTimeHelper::minutesToDuration($val['time'] / 60) : null; $rowLabel = ttReportHelper::makeGroupByLabel($val['group_field'], $options); if ($options['show_cost']) { $decimalMark = $user->getDecimalMark(); @@ -595,7 +595,7 @@ class ttReportHelper { if (is_a($res, 'PEAR_Error')) die($res->getMessage()); $val = $res->fetchRow(); - $total_time = $val['time'] ? sec_to_time_fmt_hm($val['time']) : null; + $total_time = $val['time'] ? ttTimeHelper::minutesToDuration($val['time'] / 60) : null; if ($options['show_cost']) { $total_cost = $val['cost']; if (!$total_cost) $total_cost = '0.00';