Progressbar/web — Issue #6: zmenit ical export viacdennych akcii
Author: progressbarsk
Created: 2012-01-20 14:53:18+00:00
State: open

zmenit ical export viacdennych akcii
https://github.com/progressbarsk/refinerycms-calendar/blob/master/app/views/events/show.ics.erb
zmenit ical export viacdennych akcii
https://github.com/progressbarsk/refinerycms-calendar/blob/master/app/views/events/show.ics.erb

staci zmenit
DTSTART:<%= @event.start_at.strftime('%Y%m%dT%H%M%S') %>
DTEND:<%= @event.end_at.strftime('%Y%m%dT%H%M%S') %>

na cca
<% if (@event.end_at - @event.start_at > 60*60*20 %>
DTSTART:<%= @event.start_at.strftime('%Y%m%d') %>
DTEND:<%= @event.end_at.strftime('%Y%m%d') %>
else
DTSTART:<%= @event.start_at.strftime('%Y%m%dT%H%M%S') %>
DTEND:<%= @event.end_at.strftime('%Y%m%dT%H%M%S') %>
end
staci zmenit
DTSTART:<%= @event.start_at.strftime('%Y%m%dT%H%M%S') %>
DTEND:<%= @event.end_at.strftime('%Y%m%dT%H%M%S') %>

na cca
<% if (@event.end_at - @event.start_at > 60*60*20 %>
DTSTART:<%= @event.start_at.strftime('%Y%m%d') %>
DTEND:<%= @event.end_at.strftime('%Y%m%d') %>
else
DTSTART:<%= @event.start_at.strftime('%Y%m%dT%H%M%S') %>
DTEND:<%= @event.end_at.strftime('%Y%m%dT%H%M%S') %>
end

[michal p.]