Page MenuHomePhorge

PHP Warning when parsing an alarm on specified datetime
Closed, ResolvedPublic

Description

PHP Warning:  preg_match() expects parameter 2 to be string, object given in /usr/share/kolab-syncroton/lib/kolab_sync_data_calendar.php on line 546

the parameter here can be indeed an object of type DateTime according to https://git.kolab.org/diffusion/RPK/browse/master/plugins/libkolab/lib/kolab_format_xcal.php;951f9f0efc740d8f75b512c90a6ae1a2fc187808$260.

Details

Ticket Type
Task

Event Timeline

Activesync supports reminders (alarms) only as "the number of minutes before a calendar item start time". So, we can just ignore these alarms or check if the datetime is before start time of the event and calculate number of minutes.

https://msdn.microsoft.com/en-us/library/ee219691(v=exchg.80).aspx