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/controller/users_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/controller') diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index c763cd48..8a325621 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -228,7 +228,7 @@ function user_controller() if($user_source['force_active']) { $tshirt_score = _('Enough'); } else { - $tshirt_score = round(User_tshirt_score($user_source), 2) . ' h'; + $tshirt_score = sprintf('%.2f', User_tshirt_score($user_source)) . ' h'; } return [ -- cgit v1.2.3-54-g00ecf