|
From: Wesley M. <we...@we...> - 2003-10-16 18:08:23
|
I'm running into a strange bug where the following code results in
duplicate events (at least, duplicate all-day events that repeat
annually):
if ($save_parsed_cals == 'yes' && !$is_webcal) {
$start_range_time = strtotime($this_year.'-01-01 -1 month -2 days');
$end_range_time = strtotime($this_year.'-12-31 +1 month +2 days');
} else {
The duplication is only seen on the 2nd and later occurrences of the
repeating event. The first occurrence is displayed alone.
Does anyone know why this is? If I comment those lines out and always
use the non-$save_parsed_cals logic for the $start_range-time and
$end_range_time then the all-day annual events are not duplicated. I
don't really know what this code is doing either. Can someone explain?
Thanks,
--
Wesley Miaw, Wesley Miaw Consulting
http://www.wesman.net/
|