17228 handle fractional hours

:exclamation: Depends on https://github.com/opf/openproject/pull/2277
Avoid using {...} for multi-line blocks.