mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix RDATE exported with Z, if EXDATE was also exported
This commit is contained in:
parent
63b9216e3c
commit
81cbc00ae3
@ -1109,7 +1109,7 @@ class calendar_ical extends calendar_boupdate
|
|||||||
|
|
||||||
// hack to fix iCalendar exporting EXDATE|RDATE always postfixed with a Z
|
// hack to fix iCalendar exporting EXDATE|RDATE always postfixed with a Z
|
||||||
// EXDATE can have multiple values and therefore be folded into multiple lines
|
// EXDATE can have multiple values and therefore be folded into multiple lines
|
||||||
return preg_replace_callback("/\n(EXDATE|RDATE);TZID=[^:]+:[0-9TZ \r\n,]+/", static function($matches)
|
return preg_replace_callback("/^(EXDATE|RDATE);TZID=[^:]+:[0-9TZ \r\n,]+/m", static function($matches)
|
||||||
{
|
{
|
||||||
return preg_replace('/([0-9 ])Z/', '$1', $matches[0]);
|
return preg_replace('/([0-9 ])Z/', '$1', $matches[0]);
|
||||||
}, $retval);
|
}, $retval);
|
||||||
|
Loading…
Reference in New Issue
Block a user