format freeloader duration on user myshifts page

This commit is contained in:
msquare 2019-08-23 15:44:52 +02:00
parent edcf794a32
commit 10fcd66da3
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ function User_view_myshift($shift, $user_source, $its_me)
if ($shift['freeloaded']) {
$myshift['duration'] = '<p class="text-danger">'
. round(-($shift['end'] - $shift['start']) / 3600 * 2, 2) . '&nbsp;h'
. printf('%.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . '&nbsp;h'
. '</p>';
if (auth()->can('user_shifts_admin')) {
$myshift['comment'] .= '<br />'