invoiceninja / ui

Invoice Ninja: Web admin portal built with React
https://app.invoicing.co
Other
53 stars 47 forks source link

Task time total in edit view loops around after 24h #1896

Open thirstyice opened 1 month ago

thirstyice commented 1 month ago

Setup

Interface

Checklist

Describe the bug

When editing a task in the react app, the total time (shown beside the start stop / play pause button) is incorrect when the total time is greater than 24h, showing instead the total time mod 24h (25h shows as 1h, 50h as 2h, etc)

Steps To Reproduce

Create a task. Edit the task such that the total tome logged is greater than 24h Observe

Expected Behavior

The total duration to show the total duration, even when that is longer than 24h

turbo124 commented 1 month ago

@Civolilah in Carbon there is an option to have a human readable time. I think we'll want to use the dayjs equivalent to present time frame in days / hrs ... but only after the first 24hrs has completed.

thirstyice commented 1 month ago

For what it's worth, I'd actually prefer it if it just kept counting up hours (23->24->25->etc.)

I'm often given a budget for a given project of a set number of hours (say, 40h over 2 weeks), and it's handy to be able to see how close I am to that limit without doing math to convert days back to hours.