traggo/server

Wrong chart values (negative duration sum)

Opened this issue · 3 comments

Describe the bug
I have a BarChart with a Static range from now-7/d to now/d.

For two days the bars are in the negative hour range even if all entered time ranges are positive (as seen in Timesheet / List).

To Reproduce
Not sure what produced this error.

Expected behavior
In the bar chart, the summation of the time ranges for each day should be correct.

Screenshots

Bar chart:
image

Thursday:
image

Friday:
image

Timesheet:
image

Additional context
I'm tracking my times with Traggo on two different browsers, LibreWolf (Firefox desktop, +0 time zone) and Fennec (Firefox Android, +2 time zone). If I entered times on one device and then view them on another device, they are first displayed in the wrong time zone until I click on the start and end time (but that's another issue). I did this with the times for the two days where the summation is wrong to double check that the time ranges are positive.

Also when hovering over the start and end days I see their time including time zone. For thursday this is from 13:41:06+02:00 to 13:45:53+02:00. So definitely a positive time range.


Please let me know if I can help by providing additional information and many thanks for developing Traggo!

Could you provide your traggo database? It's normally called traggo.db. Attach it to this issue or send it to me privately via hello@jmattheis.de.

I've emailed it to you. Thanks for having a look!

Okay, I can reproduce the problem. The faulty time spans were started and stopped in different timezones / time offsets. Do you maybe use different browsers / devices to start / stop the time tracking? It could also because of different configuration in the same browser, e.g. resistFingerprinting enabled / disabled in firefox.