}
if(!empty($custom_times)){
$stamp = array();
- //date_default_timezone_set('UTC');
+ date_default_timezone_set('UTC');
$serialized_custom_times = serialize($custom_times);
foreach($custom_times as $custom){
+
$convert = date('U',strtotime($custom));
$stamp[] = date('Y-m-d', $convert);
}
- $from_date = $to_date = $stamp[0];
+// $from_date = $to_date = $stamp[0];
$serialized_custom_times = serialize($stamp);
}
+ date_default_timezone_set($curZone);
}
if ($recurring_event && $from_date == $to_date && empty( $custom_times ) ) {
// Add two years to the recurring event if dates match
if($start_time_only){
$etime = $btime;
}
+
// for the recurrences part
$recur_data = array(
'event' => $event_id,