diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-20 03:46:47 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-20 03:46:47 +0000 |
commit | 03fcffc0497fd05d233146049315ec7fc0e7d29d (patch) | |
tree | 14db096a9434002775f3504b008c2093aba8d39d | |
parent | 1eb4360a70ff63be285357d4ba806c91c53feea6 (diff) | |
download | phpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.tar.gz phpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.tar.bz2 phpicalendar-03fcffc0497fd05d233146049315ec7fc0e7d29d.zip |
Small fix for dtend before 1970.
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | functions/ical_parser.php | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -87,7 +87,9 @@ functions folder. Changes: -------- 1.1 - -Fixed a bug with HTTP authentication + -Fixed a bug with HTTP authentication. + -Fixed a bug with multiple timezones in the same calendar. + -Added workarounds for dates prior to 1970. 1.0 -Added return false to popups 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; |