If they both are 00:00 then all day.
If they both are the same then no ending time.
//echo '<pre>$test_date: ' . print_r( date( 'm/d/Y', $test_date), true ) . '</pre>';
}
}
- //echo '<pre>$freq: ' . print_r( $freq, true ) . '</pre>';
- //echo '<pre>$byday: ' . print_r( $byday, true ) . '</pre>';
+ if ( $btime === $etime ) {
+ if ( $btime === '00:00' ) {
+ $all_day = true;
+ } else {
+ $start_time_only = true;
+ }
+ }
+ if ( $btime && $etime && $etime === '00:00' ) {
+ $start_time_only = true;
+ }
// for the recurrences part
$recur_data = array(
'event' => $event_id,