Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmenit ical export viacdennych akcii #6

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

zmenit ical export viacdennych akcii #6

progressbarsk opened this issue Jan 20, 2012 · 0 comments

Comments

@progressbarsk
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant