=================================================================== diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -109,9 +109,9 @@ report.periods.each do |period| sum = sum_hours(select_hours(report.hours, report.columns, period.to_s)) total += sum - row << (sum > 0 ? sum : '') + row << (sum > 0 ? format_hours(sum) : '') end - row << total + row << format_hours(total) csv << row end end =================================================================== diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb (date 1628525671015) @@ -128,9 +128,9 @@ periods.each do |period| sum = sum_hours(select_hours(hours_for_value, columns, period.to_s)) total += sum - row << (sum > 0 ? sum : '') + row << (sum > 0 ? format_hours(sum) : '') end - row << total + row << format_hours(total) csv << row if criteria.length > level + 1 report_criteria_to_csv(csv, available_criteria, columns, criteria, periods, hours_for_value, level + 1)