id, $expand); $value =& self::get_array(self::$request->content, $form_name, true); error_log(__METHOD__ . "($cname,".array2string($expand)); error_log(array2string($value)); foreach($value as $day => &$events) { foreach($events as &$event) { if(!is_array($event)) continue; foreach(array('start','end') as $date) { $event[$date] = egw_time::to($event[$date],'Y-m-d\TH:i:s\Z'); } } } } /** * Ajax callback to fetch the holidays for a given year. * @param type $year */ public static function ajax_get_holidays($year) { $cal_bo = new calendar_bo(); $holidays = $cal_bo->read_holidays((int)$year); egw_json_response::get()->data($holidays); } }