public function MicroformatEnd($offset = true) { if ($this->AllDay && $this->StartDate) { $time = "00:00:00"; $end = sfDate::getInstance($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, self::config()->offset); }