aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-20 03:46:47 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-20 03:46:47 +0000
commit03fcffc0497fd05d233146049315ec7fc0e7d29d (patch)
tree14db096a9434002775f3504b008c2093aba8d39d /functions
parent1eb4360a70ff63be285357d4ba806c91c53feea6 (diff)
downloadphpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.tar.gz
phpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.tar.bz2
phpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.zip
Small fix for dtend before 1970.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 57804ff..645bfd7 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -867,8 +867,8 @@ foreach ($cal_filelist as $filename) {
$field = ereg_replace(';VALUE=DATE-TIME', '', $field);
if (preg_match("/^DTEND;VALUE=DATE/i", $field)) {
ereg ('([0-9]{4})([0-9]{2})([0-9]{2})', $data, $dtend_check);
- if ($dtstart_check[1] < 1969) {
- $dtstart_check[1] = '1990';
+ if ($dtend_check[1] < 1969) {
+ $dtend_check[1] = '1990';
$data = $dtend_check[1].$dtend_check[2].$dtend_check[3];
}
$allday_end = $data;

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