diff options
author | msquare <msquare@notrademark.de> | 2017-12-30 12:07:10 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-30 12:07:10 +0100 |
commit | c961269bb718cfc5b5889af88fd12bfc86563d09 (patch) | |
tree | e357a3571b7a3472cfaba2887fb1fffaa6d98dd9 /includes/pages | |
parent | d66dc43aecf10e53acded391c196752444f9d70e (diff) |
better hour formatting
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_active.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index f3a28061..6a9e96ce 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -182,7 +182,7 @@ function admin_active() $usr['nick'] = User_Nick_render($usr); $usr['shirt_size'] = $tshirt_sizes[$usr['Size']]; $usr['work_time'] = round($usr['shift_length'] / 60) - . ' min (' . round($usr['shift_length'] / 3600) . ' h)'; + . ' min (' . sprintf('%.2f', $usr['shift_length'] / 3600) . ' h)'; $usr['active'] = glyph_bool($usr['Aktiv'] == 1); $usr['force_active'] = glyph_bool($usr['force_active'] == 1); $usr['tshirt'] = glyph_bool($usr['Tshirt'] == 1); |