mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Calendar - Fix 1 day holidays with duration specified as P1D spanning 2 days
This commit is contained in:
parent
2d665895f5
commit
10934f9cc1
@ -2417,6 +2417,13 @@ class calendar_ical extends calendar_boupdate
|
|||||||
// No reference or RECURRENCE-ID for the series master
|
// No reference or RECURRENCE-ID for the series master
|
||||||
$event['reference'] = $event['recurrence'] = 0;
|
$event['reference'] = $event['recurrence'] = 0;
|
||||||
}
|
}
|
||||||
|
if (Api\DateTime::to($event['start'], 'H:i:s') == '00:00:00' && Api\DateTime::to($event['end'], 'H:i:s') == '00:00:00'
|
||||||
|
&& $event['end'] - $event['start'] == 86400
|
||||||
|
)
|
||||||
|
{
|
||||||
|
// 'All day' event that ends at midnight the next day, avoid that
|
||||||
|
$event['end']--;
|
||||||
|
}
|
||||||
|
|
||||||
// handle the alarms
|
// handle the alarms
|
||||||
$alarms = $event['alarm'];
|
$alarms = $event['alarm'];
|
||||||
|
Loading…
Reference in New Issue
Block a user