** Can anyone tell me specifically how I modify that subroutine to associate my fixed times. **
You mean tell you exactly the code to use?
Not me but it looks like the event times are handled here:
code:
# If coming in using 12-hr format, switch to 24-hour internally
if (($schedule->{'start_time_ampm'} eq "am") && ($schedule->{'start_time_hh'} == 12)) {
$schedule->{'start_time_hh'} = 0;
}
elsif (($schedule->{'start_time_ampm'} eq "pm") && ($schedule->{'start_time_hh'} < 12)) {
$schedule->{'start_time_hh'} += 12;
}
if (($schedule->{'end_time_ampm'} eq "am") && ($schedule->{'end_time_hh'}== 12)) {
$schedule->{'end_time_hh'} = 0;
}
elsif (($schedule->{'end_time_ampm'} eq "pm") && ($schedule->{'end_time_hh'} < 12)) {
$schedule->{'end_time_hh'} += 12;
}
You'd likely have to design a conditional to fill those values manually if an all day event was posted and then also change the value of the $schedule->{'all_day'} variable 0 (zero).
Some pseudo code which could go after the code snippet above might look something like:
if ( $schedule->{'all_day'} )
~ set the times here ~
$schedule->{'start_time_hh'} = 9;
$schedule->{'end_time_hh'} = 17;
~ set "all day" to 0 ~
$schedule->{'all_day'} = 0
end if
You'd probably have to do something with the minutes as well:
$schedule->{'start_time_mm'}
$schedule->{'end_time_mm'}
JFYI
Dan O.
------------------