DHTMLX Calender: Error in widget bar

Hi there.
I hope someone can help me with this problem.

I have recently installed the DHTMLX Calender plugin and up until now i was very happy about the possibillitys. Only after trying to use the widget i get a error in the widget bar. This shows the following message.

Fatal error: Call to undefined function date_parse() in /var/www/vhosts/graphicaltraining.nl/httpdocs/content/wp-content/plugins/event-calendar-scheduler/SchedulerHelper.php on line 234

I am not a real code reader/writer goeroe but if someone can instruct me what to change or rewrite i just might make it.

Thanks in advance. R.H.

Hi.
Open file SchedulerHelper.php and add function in the end of file the follow code:

...
			foreach ($final_temp as $v) {
				$final[] = $v;
			}
		}
		return $final;
	}
}

function date_parse($string) {
	//2011-07-16 00:00:00
	$datetime = explode(' ', $string);
	$date = explode('-', $datetime[0]);
	$time = explode(':', $datetime[1]);
	$result = Array(
		'hour' => $time[0],
		'minute' => $time[1],
		'second' => $time[2],
		'year' => $date[0],
		'month' => $date[1],
		'day' => $date[2]
	);
	return $result;
}

?>

Hi Radyno,

Thanks very VERY much.

Your tweak really hit the spot. :wink:
The sidebar works like a charm now.

Best regards,
RHellem