Skip to content

zmenit ical export viacdennych akcii #6

Open
progressbarsk opened this Issue Jan 20, 2012 · 0 comments

1 participant

@progressbarsk
ProgressBar HackerSpace member

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 > 606020 %>
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 > 606020 %>
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.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.