Correction on the ics calendar format, which was wrongly using ; instead of :

Refs #125
This commit is contained in:
echarp 2018-04-08 00:43:11 +02:00
parent f79271520c
commit 40be723334
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '') %>
X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %> X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %>
<% @events.find_each do |event| %> <% @events.find_each do |event| %>
BEGIN:VEVENT BEGIN:VEVENT
DTSTART;<%= event.start_time.strftime '%Y%m%dT%H%M%S' %> DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
DTEND;<%= event.end_time.strftime '%Y%m%dT%H%M%S' %> DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title.gsub(',', '\,').gsub(';', '\;') %> SUMMARY:<%= event.title.gsub(',', '\,').gsub(';', '\;') %>
URL:<%= event_url event %> URL:<%= event_url event %>

View File

@ -5,8 +5,8 @@ X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '') %>
X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %> X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %>
<% event = @event %> <% event = @event %>
BEGIN:VEVENT BEGIN:VEVENT
DTSTART;<%= event.start_time.strftime '%Y%m%dT%H%M%S' %> DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
DTEND;<%= event.end_time.strftime '%Y%m%dT%H%M%S' %> DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %> SUMMARY:<%= event.title %>
URL:<%= event_url event %> URL:<%= event_url event %>