Hi Uncle Cheese,
For some reason the event_calendar module starting working really slow for a site on a site with not many events but several calendars. But I found that by changing;
$Y = date('Y', $ts); // year
$Y = date('y', $ts); // year
in sfDateTimeToolkit::breakdown() made alot of difference to performance. I could run some runtime results to prove this? But in this instance it was noticeably different. Can you see any potential problem in making this change?
I also noticed (a minor thing) that the switch should be using
Debug::message(sprintf('The unit of time provided is not valid: %s', $unit));
as opposed to outputting a symphony error message.