CIVICRM-1679 Include the timezone for date values in the Activity iCal
authorJustin Freeman <justin@agileware.com.au>
Tue, 9 Mar 2021 21:42:26 +0000 (08:42 +1100)
committerJustin Freeman <justin@agileware.com.au>
Tue, 9 Mar 2021 21:42:26 +0000 (08:42 +1100)
templates/CRM/Activity/Calendar/ICal.tpl

index cd385eccec31c45eb1c1eb978d5f673fca506cac..2ff0c050d2e9376448b18799c510b888d7cadcbf 100644 (file)
@@ -16,8 +16,8 @@ BEGIN:VEVENT
 UID:CIVICRMACTIVITY{$activity->id}
 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}
+DTSTAMP;TZID={$timezone}:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
+DTSTART;TZID={$timezone}:{$activity->activity_date_time|crmICalDate}
 DURATION:PT{$activity->duration}M
 {if $activity->location}
 LOCATION:{$activity->location|crmICalText}