mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 04:13:28 +01:00
Fix monthly recurrence issue (bug#2584)
This commit is contained in:
parent
209dec4c55
commit
005787a2b2
@ -2356,9 +2356,14 @@ class calendar_ical extends calendar_boupdate
|
|||||||
elseif (preg_match('/YM(\d+) (.*)/',$recurence, $recurenceMatches))
|
elseif (preg_match('/YM(\d+) (.*)/',$recurence, $recurenceMatches))
|
||||||
{
|
{
|
||||||
$vcardData['recur_interval'] = $recurenceMatches[1];
|
$vcardData['recur_interval'] = $recurenceMatches[1];
|
||||||
if ($recurenceMatches[2] != '#0')
|
$enddate = trim($recurenceMatches[2]);
|
||||||
|
if ($enddate != '#0')
|
||||||
{
|
{
|
||||||
$vcardData['recur_enddate'] = $this->vCalendar->_parseDateTime(trim($recurenceMatches[2]));
|
if (preg_match('/([\d,]+) (.*)/', $enddate, $fixMatches))
|
||||||
|
{
|
||||||
|
$enddate = trim($fixMatches[2]);
|
||||||
|
}
|
||||||
|
$vcardData['recur_enddate'] = $this->vCalendar->_parseDateTime($enddate);
|
||||||
}
|
}
|
||||||
} else break;
|
} else break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user