summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-08-23 15:44:52 +0200
committermsquare <msquare@notrademark.de>2019-08-23 15:44:52 +0200
commit10fcd66da3cfce0db7eed27611897d3732fad4f4 (patch)
tree234d11bec9165c1fc2489cccaf6590e91a8b0c44 /includes
parentedcf794a326d967e5a6870493ba4b1d355fe5bc2 (diff)
format freeloader duration on user myshifts page
Diffstat (limited to 'includes')
-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 ebbe065d..24ad9bea 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">'
- . 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 />'