From d4e0fb00137180f470d1045776f4565dc81f5c89 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 23 Aug 2019 15:49:41 +0200 Subject: format freeloader duration on user myshifts page --- includes/view/User_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/view/User_view.php') diff --git a/includes/view/User_view.php b/includes/view/User_view.php index a5ed9ae4..c1143c07 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -408,7 +408,7 @@ function User_view_myshift($shift, $user_source, $its_me) if ($shift['freeloaded']) { $myshift['duration'] = '

' - . printf('%.2f', round(-($shift['end'] - $shift['start']) / 3600 * 2, 2)) . ' h' + . printf('%-.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . ' h' . '

'; if (auth()->can('user_shifts_admin')) { $myshift['comment'] .= '
' -- cgit v1.2.3-54-g00ecf