mujx / hakatime

Wakatime server implementation & analytics dashboard
https://hakatime.mtx-dev.xyz
The Unlicense
610 stars 45 forks source link

Activity per hour of day - no time allocated for 23-00 #56

Closed williamboman closed 1 year ago

williamboman commented 2 years ago

Hello! I have data on my Hakatime instance going back to 2020, and when I'm looking in the Projects view, in the "Activity per hour of day" chart there's never any hours allocated to 23 (11 PM) - it's 0 all the time. I found this to be a bit odd, maybe it's an off-by-one error somewhere?

ablearthy commented 1 year ago

Yeah! There's off-by-one error made here.

By the way, I have a question: what if getTimezoneOffset returns a positive value (e.g. off = 2)? Then for v = 0, (0 - (off)) % 24 = -2. I think, it should be fixed too.