diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-17 07:07:57 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-17 07:07:57 +0000 |
commit | 5f12dd30dab402ca1a290b85b57f032354b5e7ed (patch) | |
tree | fe355baeed968838fbac47bc5cbc91c5e1b91efa /functions | |
parent | d4be55af095532abcb17cacb07de79520c1c4887 (diff) | |
download | phpicalendar-5f12dd30dab402ca1a290b85b57f032354b5e7ed.tar.gz phpicalendar-5f12dd30dab402ca1a290b85b57f032354b5e7ed.tar.bz2 phpicalendar-5f12dd30dab402ca1a290b85b57f032354b5e7ed.zip |
progress on recurrence until
Diffstat (limited to 'functions')
-rw-r--r-- | functions/parse/recur_functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/parse/recur_functions.php b/functions/parse/recur_functions.php index 1b6b8c0..8a694be 100644 --- a/functions/parse/recur_functions.php +++ b/functions/parse/recur_functions.php @@ -24,7 +24,7 @@ BYxxx rule parts modify the recurrence in some manner. BYxxx rule */ function add_recur($times,$freq=''){ - global $recur_data, $count, $mArray_begin, $mArray_end, $except_dates, $start_date_unixtime,$until_unixtime; + global $recur_data, $count, $mArray_begin, $mArray_end, $except_dates, $start_date_unixtime,$end_range_unixtime; if (!is_array($times)) $times = array($times); #echo "add_recur";dump_times($times); /*BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY, BYHOUR, @@ -38,7 +38,7 @@ function add_recur($times,$freq=''){ $times[] = $start_date_unixtime; $times = array_unique($times); sort($times); - $until_date = date("Ymd",$until_unixtime); + $until_date = date("Ymd",$end_range_unixtime); foreach ($times as $time){ #echo "time:". date("Ymd",$time); $date = date("Ymd",$time); |