aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-02-16 02:26:59 +0000
committerChad Little <clittle@users.sourceforge.net>2003-02-16 02:26:59 +0000
commitde6812244c7ccb687b537560883019a263765917 (patch)
tree04a597055c6b527ef3e19cbdd7063a2f427ccba5 /functions
parentdb5981c2ad6a44f90c36efb6ac0296ab2c675935 (diff)
downloadphpicalendar-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.php2
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 {

© 2014-2024 Faster IT GmbH | imprint | privacy policy