RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
241 stars 72 forks source link

The now indicator in the calendar overview ignores the agents time zone #1885

Open bschmalhofer opened 1 year ago

bschmalhofer commented 1 year ago

I took this screenshot in Germany at 16:02 Middle European Summer Time. The time zone in my Agent profile was set to Europe/London which is one hour behind Europe/Berlin. I would have expected that the yellow now indicator would be at 15:02, but it shows 16:02.

Bildschirmfoto vom 2022-08-23 16-02-50

The three appointments are test appointments that I created with my time zone set to Europe/Athens, Europe/Berlin, and Europe/London. The show consistent times:

The culprit seems to the time zone local of the calendar widget: https://github.com/RotherOSS/otobo/blob/rel-10_1/var/httpd/htdocs/js/Core.Agent.AppointmentCalendar.js#L176 . The local time zone is the time zone of the browser, in this case Europe/Berlin. See https://fullcalendar.io/docs/timeZone. So the problem likely occurs always when the time zone in the profile diverges from the local time zone.

A possible solution might be to pass in the named time zone from the agent's profile.

stefanhaerter commented 1 year ago

It seems like there is a workaround mentioned here and here - however, especially the second source does not sound very promising since the workaround produces a warning and the contributor has not responded to the issue since 2020.

stefanhaerter commented 1 year ago

(Addon: I tested twisting the timezone property as mentioned by @bschmalhofer, but this didn't affect the now indicator, which aligns with the documentation, where the now indicator is not listed under affected calendar entities )

bschmalhofer commented 4 days ago

Classify this as milestone 11.1 as this seems to be a bug.