|
From: <cl...@us...> - 2003-02-16 02:27:02
|
Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv15927/functions
Modified Files:
ical_parser.php
Log Message:
Added a fix for DATE-TIME from Xaminim Evolution calendars.
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** ical_parser.php 10 Jan 2003 17:53:31 -0000 1.82
--- ical_parser.php 16 Feb 2003 02:26:59 -0000 1.83
***************
*** 685,688 ****
--- 685,689 ----
$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;
***************
*** 731,734 ****
--- 732,736 ----
$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;
|