summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-08-23 15:55:22 +0200
committermsquare <msquare@notrademark.de>2019-08-23 15:55:22 +0200
commit1604d2bce0873777709f65d27bd7d32aaa99c659 (patch)
tree51ed1fce38ed17e1e46a2611cc6c8c24081a42f6
parentd4e0fb00137180f470d1045776f4565dc81f5c89 (diff)
format freeloader duration on user myshifts page
-rw-r--r--includes/view/User_view.php2
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) . '&nbsp;h'
+ . sprintf('%.2f', -($shift['end'] - $shift['start']) / 3600 * 2) . '&nbsp;h'
. '</p>';
if (auth()->can('user_shifts_admin')) {
$myshift['comment'] .= '<br />'