protected function MicroformatEnd($offset = true) { if ($this->AllDay() && $this->StartDate) { $time = "00:00:00"; $end = new sfDate($this->StartDate); $date = $end->tomorrow()->date(); unset($end); } else { $date = $this->EndDate ? $this->EndDate : $this->StartDate; $time = $this->EndTime && $this->StartTime ? $this->EndTime : (!$this->EndTime && $this->StartTime ? $this->StartTime : "00:00:00"); } return CalendarUtil::Microformat($date, $time, $offset); }