From c961269bb718cfc5b5889af88fd12bfc86563d09 Mon Sep 17 00:00:00 2001 From: msquare Date: Sat, 30 Dec 2017 12:07:10 +0100 Subject: better hour formatting --- includes/pages/admin_active.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/pages/admin_active.php') 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); -- cgit v1.2.3-54-g00ecf