diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 02:26:59 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 02:26:59 +0000 |
commit | de6812244c7ccb687b537560883019a263765917 (patch) | |
tree | 04a597055c6b527ef3e19cbdd7063a2f427ccba5 /functions | |
parent | db5981c2ad6a44f90c36efb6ac0296ab2c675935 (diff) | |
download | phpicalendar-de6812244c7ccb687b537560883019a263765917.tar.gz phpicalendar-de6812244c7ccb687b537560883019a263765917.tar.bz2 phpicalendar-de6812244c7ccb687b537560883019a263765917.zip |
Added a fix for DATE-TIME from Xaminim Evolution calendars.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 549cbbb..d374949 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -684,6 +684,7 @@ if ($parse_file) { if (substr($data,-1) == 'Z') $zulu_time = true; $data = ereg_replace('T', '', $data); $data = ereg_replace('Z', '', $data); + $field = ereg_replace(';VALUE=DATE-TIME', '', $field); if (preg_match("/^DTSTART;VALUE=DATE/i", $field)) { $allday_start = $data; $start_date = $allday_start; @@ -730,6 +731,7 @@ if ($parse_file) { if (substr($data,-1) == 'Z') $zulu_time = true; $data = ereg_replace('T', '', $data); $data = ereg_replace('Z', '', $data); + $field = ereg_replace(';VALUE=DATE-TIME', '', $field); if (preg_match("/^DTEND;VALUE=DATE/i", $field)) { $allday_end = $data; } else { |