core icon indicating copy to clipboard operation
core copied to clipboard

Timezones west of GMT show wrong date even thought the underlying data is correct.

Open tdt-amartin opened this issue 2 months ago • 3 comments

I have an odd display bug here that's puzzling me. I have my profile set to U.S. Mountain time (currently GMT-6). When I add timesheet entries, they are off, but only on the day they are displayed. The times are correct and not off by 6 hours.

It doesn't matter if I change my timezone in the app profile to, for example, London/BST the day is still off by -1. But if I change my computer system clock to London/GMT, then the dates appear correctly.

My best guess is that the date is being parsed separately from the time entries, so here's an example:

worklog id 1 date=1785888000 (Aug 5 00:00Z) 12:26–16:52 but the UI labels it Aug 4 while showing 12:26–16:52.

It could be a config issues on my part. I'm not certain. Please let me know what els eI can provide to help track this down.

Thanks!

tdt-amartin avatar Sep 07 '26 19:09 tdt-amartin

Thanks for reporting this. Times are always saved in UTC so they need to be converted in the browser to match the timezone. Looks like there is some kind of bug in that conversion, I will have a look

stefan-ernst avatar Sep 07 '26 19:09 stefan-ernst

Hey @tdt-amartin , can you verify if this works better in 0.8.8?

stefan-ernst avatar Sep 11 '26 11:09 stefan-ernst

Hey @stefan-ernst I apologize for the delay, but I just got around to looking at this. It is fixed. Thank you so much!

tdt-amartin avatar Sep 30 '26 12:09 tdt-amartin