summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-08-23 15:49:41 +0200
committermsquare <msquare@notrademark.de>2019-08-23 15:49:41 +0200
commitd4e0fb00137180f470d1045776f4565dc81f5c89 (patch)
treeec93b302cc8c8a39718220826791b89dded069e4 /includes/view/User_view.php
parent39fda9b04faa89da035e7218f517e80b0291acd8 (diff)
format freeloader duration on user myshifts page
Diffstat (limited to 'includes/view/User_view.php')
-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 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'] = '<p class="text-danger">'
- . printf('%.2f', 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 />'