One problem I found with these changes... when you go to the "edit/delete events" page, you'll get the month wrap affect too, which is probably not what you want.
Here are the changes needed to NOT get month wrap on the "edit/delet events" page:
The end of Date.inc should be changed to:
$end = Time::Local::timegm(0,0,0,1,$start_mm,$start_yy)-1;
if(! defined $properties->{nowrap}) {
# Dan hack to fill out the month
if ($week_start_day <= $start_wd){
my $dooffset = (7-(7-$start_wd)-$week_start_day) * 60 * 60 * 24;
$start -= $dooffset;
} else {
$dooffset = (7-$week_start_day) * 60 * 60 * 24;
$start -= $dooffset;
}
$end_wd = (localtime($end))[6];
if ($end_wd >= $week_start_day){
$dooffset = (6 + $week_start_day - $end_wd) * 60 * 60 * 24;
$end += $dooffset;
}
}
return ($start,$end);
}
1;
Event.inc (around line 104):
($start,$end) = &Date::getTimeSpan( {'range'=>'month','startdate'=>$datestring,nowrap=>defined $properties->{nowrap} } );
edit_delete_events.html (around line 174):
else {
$properties->{range} = 'month';
$properties->{month} = $month;
$properties->{year} = $year;
$properties->{nowrap} = 1;
$events = &Event::getEvents($events_db,$schedule_db,$properties);
}
For all of the above, the lines with "nowrap" are the ones I had to add on top of the other month wrap changes.
------------------
See some of my modifications to CalendarScript at http://www.prayforoneanother.org/cgi-bin/cal/calendar.pl
[This message has been edited by mraj (edited March 24, 2005).]