Formatted duration always calculates highest unit, even if missing #26

Closed
opened 2023-01-09 21:39:58 +00:00 by lukas · 1 comment
Owner

This leads to confusing behaviour:

%d days %H hours : 25 hours => 1 days 1 hours (good)
%H hours         : 25 hours =>        1 hours (bad)

For now, format_duration will always calculate only units present in the format_string.
In the future, toggle should be added to change this behavior: #27

This leads to confusing behaviour: ``` %d days %H hours : 25 hours => 1 days 1 hours (good) %H hours : 25 hours => 1 hours (bad) ``` For now, `format_duration` will always calculate only units present in the `format_string`. In the future, toggle should be added to change this behavior: #27
lukas added spent time 2023-01-09 21:41:12 +00:00
30 minutes
Author
Owner

Done in 078f87687f

Done in 078f87687f53242d1cc5566cfc1472bd7796dd0f
lukas closed this issue 2023-01-09 21:50:39 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 30 minutes
lukas
30 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lukas/timetracker#26
No description provided.