From 1ffeadc0abdeeaab38b0951a1fac8f4b3f71222a 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..e218a7c2 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((float) number_format($delta, 0)); } - return format_time(number_format($delta, 1)); + return format_time((float) number_format($delta, 1)); } return ''; }