groupoffice icon indicating copy to clipboard operation
groupoffice copied to clipboard

DateInvalidTimezoneException when there is MS Teams appontment.ics

Open nit-bg opened this issue 2 months ago • 4 comments

A message, which contains MS Teams Appointment.ics attachment with time zone FLE Standard Time cannot be open in Group Office 25 and php 8.3 It displays a dialog DateInvalidTimezoneException and doesn't show the message I would expect that it needs some kind of processing to convert Microsoft Timezone ID to IANA, or simply skip trying to parse this king of ics

nit-bg avatar Nov 11 '25 23:11 nit-bg

If someone hits the same wall, I created a kind of a fix on mail server level. https://github.com/nit-bg/calendar-tzfix but i think the same processing can be implemented in group office code.

nit-bg avatar Nov 12 '25 14:11 nit-bg

Patching these 2 files fixes the issue. Actually patching only the Scheduler.php fixes my issue, but I don't know the structure of the group office to be sure what to patch. See the lines 213-275 in the Scheduler.php

MailStore.php Scheduler.php

nit-bg avatar Nov 13 '25 00:11 nit-bg

Wow nice going! Could you share an ics file that fails for testing?

mschering avatar Nov 13 '25 10:11 mschering

Nice find with the IntlTimeZone::getIDForWindowsID() function. It would be even better if this is used in the Sabre Vobject library. Would you be interested in creating a pull request for that lib?

mschering avatar Nov 13 '25 10:11 mschering