diff --git a/templates/calendar.ics.twig b/templates/calendar.ics.twig index 41f8160..0432d55 100644 --- a/templates/calendar.ics.twig +++ b/templates/calendar.ics.twig @@ -4,12 +4,13 @@ VERSION:2.0 {% for nid, node in ror.calendar.nodes %} BEGIN:VEVENT -SUMMARY: {{node.title.0.value}} -UID: node-{{node.nid.0.value}}@www.ondarossa.info -DTSTAMP: {{node.created.0.value}} -DTSTART: {{node.field_data_evento.0.value|date("Ymd\\THis")}}Z -DURATION: PT1H -URL: http://www.ondarossa.info{{node.path.0.alias}} +SUMMARY:{{node.title.0.value}} +UID:node-{{node.nid.0.value}}@www.ondarossa.info +DTSTAMP:{{node.created.0.value|date("Ymd\\This")}}Z +DTSTART:{{node.field_data_evento.0.value|date("Ymd\\THis")}}Z +DURATION:PT1H +DTEND:{{node.field_data_evento.0.value|date_modify("+1 hour")|date("Ymd\\THis")}}Z +URL:http://www.ondarossa.info{{node.path.0.alias}} END:VEVENT {% endfor %} END:VCALENDAR