From e5730fce00a08e760e7030d167d491d3822c7bad Mon Sep 17 00:00:00 2001 From: Lawrence Carvalho Date: Wed, 14 Oct 2009 11:12:06 +0000 Subject: [PATCH] Merged 3.2 to HEAD 16820: Fix for ETHREEOH-2483 - iCalendar feed and Timezone out of sync git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/slingshot/calendar/eventList.get.calendar.ftl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/eventList.get.calendar.ftl b/config/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/eventList.get.calendar.ftl index 7999057892..c4830b6a6f 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/eventList.get.calendar.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/slingshot/calendar/eventList.get.calendar.ftl @@ -1,6 +1,7 @@ <#if events?exists> <#assign dateFormat = "yyyyMMdd"> <#assign timeFormat = "HHmmss"> +<#assign zoneFormat = "z"> BEGIN:VCALENDAR PRODID:-//Alfresco Software//Calendar 1.0//EN VERSION:2.0 @@ -11,10 +12,10 @@ VERSION:2.0 <#assign to = event.properties["ia:toDate"]> BEGIN:VEVENT UID:${event.id} -DTSTART:${from?string(dateFormat)}T${from?string(timeFormat)}Z -DTEND:${to?string(dateFormat)}T${to?string(timeFormat)}Z +DTSTART;TZID=${from?string(zoneFormat)}:${from?string(dateFormat)}T${from?string(timeFormat)} +DTEND;TZID=${from?string(zoneFormat)}:${to?string(dateFormat)}T${to?string(timeFormat)} SUMMARY:${event.properties["ia:whatEvent"]!""} -DTSTAMP:${event.properties["cm:created"]?string(dateFormat)}T${event.properties["cm:created"]?string(timeFormat)}Z +DTSTAMP;TZID=${event.properties["cm:created"]?string(zoneFormat)}:${event.properties["cm:created"]?string(dateFormat)}T${event.properties["cm:created"]?string(timeFormat)} <#if event.properties["ia:descriptionEvent"]?exists> DESCRIPTION:${event.properties["ia:descriptionEvent"]?replace("\\", "\\\\")?replace(",", "\\,")?replace(";", "\\;")?replace("\r?\n", "\\n", "r")}