Glad you got it working. If you run into any other problems...just let me know. Another solution would be to do the following:
Around line one 181, change the array events array to:
$events[]=array('time'=>$sortDate,'where'=>$where,'title'=>$item->get_title(),'url'=>$url,'eventDescription'=>$eventDescription,'startDate'=>$startDate,'startTime'=>$startTime,'endDate'=>$endDate,'endTime'=>$endTime,'startYear'=>$startYear,'startDay'=>$startDay,'startMonthCal'=>$startMonth,,'endTime'=>$tempEndDate);
Then around line 219 add in a couple more strings to replace:
$output = str_replace('[+sTimestamp+]',$event['time'],$output);
$output = str_replace('[+eTimestamp+]',$event['endTime'],$output);
Now you can utilize [+sTimestamp+] and [+eTimestamp+] to pass to PHx. This is the direction I will likely go with and using it would ensure an easier upgrade path for you.
I haven’t tested this, so if it doesn’t work, revert back to your method.