X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=25cee96cc1844191761848f19f7a676842412748;hb=8d4f529a93ab84e85122a7302bdc0799b5c3bae8;hp=caab2bd717fbfdbb5f733f937757cf293acfadc1;hpb=704d09fab8234dda51765058b15393f6c68191f3;p=timetracker.git diff --git a/time.php b/time.php index caab2bd7..25cee96c 100644 --- a/time.php +++ b/time.php @@ -68,7 +68,7 @@ if ($user->isPluginEnabled('mq')){ $quota = new MonthlyQuota(); $month_quota = $quota->get($selected_date->mYear, $selected_date->mMonth); $month_total = ttTimeHelper::getTimeForMonth($user->getActiveUser(), $selected_date); - $minutes_left = ttTimeHelper::toMinutes($month_quota) - ttTimeHelper::toMinutes($month_total); + $minutes_left = round(60*$month_quota) - ttTimeHelper::toMinutes($month_total); $smarty->assign('month_total', $month_total); $smarty->assign('over_quota', $minutes_left < 0);