diff options
author | msquare <msquare@notrademark.de> | 2019-08-23 15:47:17 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-08-23 15:47:17 +0200 |
commit | 39fda9b04faa89da035e7218f517e80b0291acd8 (patch) | |
tree | 99d48b863ce3b1cc90fe03be761686bc68f32168 /includes/view | |
parent | 10fcd66da3cfce0db7eed27611897d3732fad4f4 (diff) |
format freeloader duration on user myshifts page
Diffstat (limited to 'includes/view')
-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 24ad9bea..a5ed9ae4 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' + . printf('%.2f', round(-($shift['end'] - $shift['start']) / 3600 * 2, 2)) . ' h' . '</p>'; if (auth()->can('user_shifts_admin')) { $myshift['comment'] .= '<br />' |