aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-07-25 00:57:19 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-07-25 00:57:19 +0000
commit6fd3e9b6ae4a37a92e7d86072a14d146ba5a1ae8 (patch)
tree2a09b1c4b6f2faae3a20c28730e6ac8bc402feb5 /functions/ical_parser.php
parentb2069c59cccaff604fcf088ddd5ffcfb4052b7ae (diff)
downloadphpicalendar-6fd3e9b6ae4a37a92e7d86072a14d146ba5a1ae8.tar.gz
phpicalendar-6fd3e9b6ae4a37a92e7d86072a14d146ba5a1ae8.tar.bz2
phpicalendar-6fd3e9b6ae4a37a92e7d86072a14d146ba5a1ae8.zip
change ical_parser year increment
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index e8092c6..af1da64 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -300,6 +300,7 @@ foreach ($cal_filelist as $cal_key=>$filename) {
$end = strtotime('+1 day', $start);
}
// Changed for 1.0, basically write out the entire event if it starts while the array is written.
+ # while loop handles multi-day allday events to write separate master_array elements for each day.
if (($start < $mArray_end) && ($start < $end)) {
while (($start != $end) && ($start < $mArray_end)) {
$start_date2 = date('Ymd', $start);
@@ -700,7 +701,7 @@ foreach ($cal_filelist as $cal_key=>$filename) {
foreach($bymonth as $month) {
// Make sure the month & year used is within the start/end_range.
if ($month < date('m', $next_range_time)) {
- $year = date('Y', strtotime('+1 years', $next_range_time));
+ $year = date('Y', $next_range_time);
} else {
$year = date('Y', $next_range_time);
}

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