Project

General

Profile

Actions

Defect #41895

closed

Spent time CSV report returning `hours` as Rational instead of Float

Added by Thomas Stollorcz 28 days ago. Updated 19 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Time tracking
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Same issues as in Defect #41819 only for CSV report, the patch does not help.
Before Redmine 6, the hours field returned data in double (float) format, like 0,25. Currently, Redmine 6 returns this field in weird fraction format 9/1 (as 9 hours).

CSV report from Redmine 5.1.1

Date;Author;Hours;Issue;Comment
24.11.2024;User Name;1,5;Servicerequest #1364: Issue #1;"" 
23.11.2024;User Name;0,75;Servicerequest #1415: Issue #2;"" 
23.11.2024;User Name;0,5;Servicerequest #1416: Issue #3;"" 
22.11.2024;User Name;4,25;Servicerequest #1415: Issue #2;"" 

CSV report from Redmine 6.0.1

Date;Author;Hours;Issue;Comment
24.11.2024;User Name;3/2;Servicerequest #1364: Issue #1;"" 
23.11.2024;User Name;3/4;Servicerequest #1415: Issue #2;"" 
23.11.2024;User Name;1/2;Servicerequest #1416: Issue #3;"" 
22.11.2024;User Name;17/4;Servicerequest #1415: Issue #2;"" 


Files

41895.patch (1.29 KB) 41895.patch Go MAEDA, 2024-12-01 07:21

Related issues

Related to Redmine - Defect #40914: Fix precision issues in TimeEntry#hours calculation by returning Rational instead of FloatClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF