Open bschmalhofer opened 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 )
Classify this as milestone 11.1 as this seems to be a bug.
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.
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.