diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-10-10 06:49:44 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-10-10 06:49:44 +0000 |
commit | bde20d9162f7033c44c5748ab35d14ec777d3c12 (patch) | |
tree | 75282fc6599ca71453427ab2b986da65abf25027 /functions | |
parent | af5ce4ebb421eba13e0bf3ed55a7a76400f1d722 (diff) | |
download | phpicalendar-bde20d9162f7033c44c5748ab35d14ec777d3c12.tar.gz phpicalendar-bde20d9162f7033c44c5748ab35d14ec777d3c12.tar.bz2 phpicalendar-bde20d9162f7033c44c5748ab35d14ec777d3c12.zip |
Minor changes, tighted up week.php
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 5635518..9bb382b 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -323,6 +323,7 @@ foreach($contents as $line) { if ($rrule_array['FREQ'] == 'WEEKLY') { // use weekCompare to see if we even have this event this week + $diff_weeks = weekCompare(date('Ymd',$next_range_time), $start_date); if ($diff_weeks < $count) { if ($diff_weeks % $number == 0) { @@ -332,7 +333,9 @@ foreach($contents as $line) { // use my fancy little function to get the date of each day $day = two2threeCharDays($day); + #$thedate = date ("r", $next_range_time); $next_date = dateOfWeek(date('Ymd', $next_range_time),$day); + #echo "$day -- $summary -- $thedate -- $next_date<br>"; $next_date_time = strtotime($next_date); if (($next_date_time > $start_date_time) && ($next_date_time <= $end_date_time) && ($count_to != $count) && !in_array($next_date, $except_dates)) { |