Skip to content

Commit

Permalink
Merge pull request #103 from rsmclaren/master
Browse files Browse the repository at this point in the history
Fix [Recoverable Error] Argument 1 passed to ICSWriter::getFormatedDateTime()
  • Loading branch information
Aaron Carlino authored Aug 24, 2016
2 parents d4180ee + b769657 commit 5106cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ICSWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ protected function addDateTime( CalendarDateTime $dateTime ) {
$this->addLine('BEGIN:VEVENT');
$this->addLine('UID:' . $this->getUID($dateTime) );
$this->addLine('DTSTAMP;TZID=' . Calendar::config()->timezone . ':' . $this->getFormatedDateTime());
$this->addLine('DTSTART;TZID=' . Calendar::config()->timezone . ':' . $this->getFormatedDateTime($dateTime->StartDate, $dateTime->StartTime));
$this->addLine('DTEND;TZID=' . Calendar::config()->timezone . ':' . $this->getFormatedDateTime($dateTime->StartDate, $dateTime->StartTime));
$this->addLine('DTSTART;TZID=' . Calendar::config()->timezone . ':' . $this->getFormatedDateTime($dateTime->dbObject('StartDate'), $dateTime->dbObject('StartTime')));
$this->addLine('DTEND;TZID=' . Calendar::config()->timezone . ':' . $this->getFormatedDateTime($dateTime->dbObject('EndDate'), $dateTime->dbObject('EndTime')));
$this->addLine('URL:' . Director::absoluteURL($dateTime->ICSLink()));
$this->addLine('SUMMARY:CHARSET=UTF-8:' . $dateTime->Event()->Title);
$this->addLine('END:VEVENT');
Expand Down

0 comments on commit 5106cc6

Please sign in to comment.