Create task with almost 2 days duration. E.g. 2022-11-19T00:00 to 2022-11-20T23:59
Switch to Gantt view
Expected behavior:
The task should span two days.
Actual behavior:
It spans one. Probably because it's not two full days. Possibly related to #2693.
**Version information:**
Current (2022-11-19) try.vikunja
**Steps to reproduce:**
1. Create task with almost 2 days duration. E.g. 2022-11-19T00:00 to 2022-11-20T23:59
2. Switch to Gantt view
**Expected behavior:**
The task should span two days.
**Actual behavior:**
It spans one. Probably because it's not two full days. Possibly related to #2693.
I guess it would be coolest to have it on sub-day increments. But for now rounding to the closest day should be fine. So floor if < 0.5 days, ceiling otherwise.
> So it should round to the next day?
I guess it would be coolest to have it on sub-day increments. But for now rounding to the closest day should be fine. So floor if < 0.5 days, ceiling otherwise.
Version information:
Current (2022-11-19) try.vikunja
Steps to reproduce:
Expected behavior:
The task should span two days.
Actual behavior:
It spans one. Probably because it's not two full days. Possibly related to #2693.
So it should round to the next day?
@dpschen Didn't we talk about this recently?
Yes, didn't get to look at this in more detail yet.
I guess it would be coolest to have it on sub-day increments. But for now rounding to the closest day should be fine. So floor if < 0.5 days, ceiling otherwise.