Project

General

Profile

Actions

Defect #42339

open

Value for "hours" incorrect when creating a time entry using the API

Added by Stefan Borchert about 4 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Description

We use Redmine version 6.0.3.stable and a custom script to synchronize time entries from toggl to Redmine.
This worked well so far but after the update to 6.0.3.stable we noticed that some time entries have incorrect values for hours.
Example: we are creating a new time entry and send "hours: 0.44". The resulting time entry has the value "0.43" for property "hours".

Is there any sanitizing or rounding of values in Redmine weare unaware of? It worked in Redmine 5 so there has to be some changes.

Environment

Redmine version                6.0.3.stable
Ruby version 3.2.3-p157 (2024-01-18) [x86_64-linux-gnu]
Rails version 7.2.2.1
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery sendmail

No data to display

Actions

Also available in: Atom PDF