Fix VTIMEZONE part of VCALENDAR

This commit is contained in:
Jörg Lehrke 2009-10-05 04:38:09 +00:00
parent 3c6a6b8727
commit 83d00a845a

View File

@ -875,7 +875,8 @@ class Horde_iCalendar {
// VERSION is not allowed for entries enclosed in VCALENDAR/ICALENDAR,
// as it is part of the enclosing VCALENDAR/ICALENDAR. See rfc2445
if ($base !== 'VEVENT' && $base !== 'VTODO' && $base !== 'VALARM' &&
$base !== 'VJOURNAL' && $base !== 'VFREEBUSY') {
$base !== 'VJOURNAL' && $base !== 'VFREEBUSY' &&
$base !== 'VTIMEZONE' && $base !== 'STANDARD' && $base != 'DAYLIGHT') {
// Ensure that version is the first attribute.
$result .= 'VERSION:' . $this->_version . $this->_newline;
}