Actions
Defect #44237
openAPI returning time entry with hours rounded to two decimal places instead of giving the full information
Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Affected version:
Description
In reaction to #41819 the value for hours of a time entry returned by API got rounded to two decimal places, see https://www.redmine.org/attachments/33391.
This leads to slightly wrong results.
It should round to more decimal places to provide the full information that is stored in the database. I don't know how many, as I don't know how many are stored in the database.
I experience the problem with Redmine 6.0.10, but from the current source code I conclude that the problem should be the same also in the current version, see https://github.com/redmine/redmine/blob/master/app/views/timelog/show.api.rsb
No data to display
Actions