format freeloader duration on user myshifts page

This commit is contained in:
msquare 2019-08-23 15:55:22 +02:00
parent d4e0fb0013
commit 1604d2bce0
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">'
. printf('%-.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . '&nbsp;h'
. sprintf('%.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . '&nbsp;h'
. '</p>';
if (auth()->can('user_shifts_admin')) {
$myshift['comment'] .= '<br />'