From 7bd872209cb4068de5467ebeff9be69a1a0ce1aa Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 1 Sep 2005 18:35:03 +0000 Subject: Successfully Updated 1277846. --- README | 3 +++ functions/ical_parser.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/README b/README index 5bad012..7846907 100644 --- a/README +++ b/README @@ -81,6 +81,9 @@ COPYING for more information about our license. Changes: -------- +2.0 -Event URLs display without LOCATION. + -Fixed VTIMEZONE dates on Windows IIS. + 2.0 c -Enhanced error messaging system. -New Open Source Documentation. diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 595ead9..67a1b1f 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -949,6 +949,9 @@ foreach ($cal_filelist as $filename) { } preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $data, $regs); + if ($regs[1] < 1970) { + $regs[1] = '1971'; + } $start_date = $regs[1] . $regs[2] . $regs[3]; $start_time = $regs[4] . $regs[5]; $start_unixtime = mktime($regs[4], $regs[5], 0, $regs[2], $regs[3], $regs[1]); @@ -1000,6 +1003,9 @@ foreach ($cal_filelist as $filename) { } preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $data, $regs); + if ($regs[1] < 1970) { + $regs[1] = '1971'; + } $end_date = $regs[1] . $regs[2] . $regs[3]; $end_time = $regs[4] . $regs[5]; $end_unixtime = mktime($regs[4], $regs[5], 0, $regs[2], $regs[3], $regs[1]); -- cgit v1.2.3