From c772248eb5f7f44aa18f1c7317f01e231bd1dcff Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Tue, 27 Feb 2024 11:06:36 +1100 Subject: [PATCH] fix: dataflow table view Resolves #867 --- classes/dataflows_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/dataflows_table.php b/classes/dataflows_table.php index f17e9ad5..a125fb2b 100644 --- a/classes/dataflows_table.php +++ b/classes/dataflows_table.php @@ -203,9 +203,9 @@ public function col_lastrunduration(\stdClass $record): string { . get_string('runningfor', 'tool_dataflows', format_time($delta, 0)) . ''; } if ($delta > 10) { - return format_time(number_format($delta, 0)); + return format_time($delta); } - return format_time(number_format($delta, 1)); + return format_time((float) number_format($delta, 1)); } return ''; }