CRM-15228 - replace bogus DTEND with DURATION property in activity ical output.
authorDave Greenberg <dave@civicrm.org>
Thu, 7 May 2015 00:25:25 +0000 (17:25 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 7 May 2015 00:25:25 +0000 (17:25 -0700)
----------------------------------------
* CRM-15228: Activity End Time same as start Time in iCal invitation
  https://issues.civicrm.org/jira/browse/CRM-15228

templates/CRM/Activity/Calendar/ICal.tpl

index 9c1729134a2077fa2f5a35d12e9fa656a7d309d0..ec5b2ebcef2b77eceb227aba8877b6c4d5dd24aa 100644 (file)
@@ -34,7 +34,7 @@ SUMMARY:{$activity->subject|crmICalText}
 CALSCALE:GREGORIAN
 DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
 DTSTART;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate}
-DTEND;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate}
+DURATION:PT{$activity->duration}M
 {if $activity->location}
 LOCATION:{$activity->location|crmICalText}
 {/if}