diff options
author | msquare <msquare@notrademark.de> | 2019-08-23 15:55:22 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-08-23 15:55:22 +0200 |
commit | 1604d2bce0873777709f65d27bd7d32aaa99c659 (patch) | |
tree | 51ed1fce38ed17e1e46a2611cc6c8c24081a42f6 | |
parent | d4e0fb00137180f470d1045776f4565dc81f5c89 (diff) |
format freeloader duration on user myshifts page
-rw-r--r-- | includes/view/User_view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php index c1143c07..9f5264ef 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'] = '<p class="text-danger">' - . printf('%-.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . ' h' + . sprintf('%.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . ' h' . '</p>'; if (auth()->can('user_shifts_admin')) { $myshift['comment'] .= '<br />' |