diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2005-12-02 17:18:31 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2005-12-02 17:18:31 +0000 |
commit | 613d019259721d83c888e7dd94872052263a6104 (patch) | |
tree | 1bee5cfc5dd340c63c64fea0ca60e1d288dc0f18 /functions/ical_parser.php | |
parent | 20030121c4fc988b94418561191bd9784b9cfd29 (diff) | |
download | phpicalendar-613d019259721d83c888e7dd94872052263a6104.tar.gz phpicalendar-613d019259721d83c888e7dd94872052263a6104.tar.bz2 phpicalendar-613d019259721d83c888e7dd94872052263a6104.zip |
fix for calculation of negative byday events
Diffstat (limited to 'functions/ical_parser.php')
-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 5119a1a..831a4a5 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -562,6 +562,9 @@ foreach ($cal_filelist as $filename) { if (in_array($month, $bymonth)) { $recur_data[] = $next_date_time; } + #reset next_range_time to start of month + $next_range_time = strtotime(date('Y-m-'.'1', $next_range_time)); + } elseif (isset($bymonthday) && (!empty($bymonthday))) { // This supports MONTHLY where BYDAY and BYMONTH are both set foreach($bymonthday as $day) { |