aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-30 01:13:53 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-30 01:13:53 +0000
commitc7123dd5c532d6b8562dde37e99c674a1a0242aa (patch)
treea46737773acc5c622d1e6b182a7a3244f11fbd3b /functions
parent52affff02436675e313d80aee98459df6cd11fd1 (diff)
downloadphpicalendar-c7123dd5c532d6b8562dde37e99c674a1a0242aa.tar.gz
phpicalendar-c7123dd5c532d6b8562dde37e99c674a1a0242aa.tar.bz2
phpicalendar-c7123dd5c532d6b8562dde37e99c674a1a0242aa.zip
Added a condition to DTSTART that will check to see if an hour/minute is
set, and if not defaults to VALUE=DATE param. Mostly for sloppy vevent writers.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 6c4369a..83228d5 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -811,7 +811,7 @@ foreach ($cal_filelist as $filename) {
$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)) {
+ if ((preg_match("/^DTSTART;VALUE=DATE/i", $field)) || (ereg ('^([0-9]{4})([0-9]{2})([0-9]{2})$', $data))) {
ereg ('([0-9]{4})([0-9]{2})([0-9]{2})', $data, $dtstart_check);
if ($dtstart_check[1] < 1969) {
$dtstart_check[1] = '1990';

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