search for: to_ical

Displaying 4 results from an estimated 4 matches for "to_ical".

Did you mean: logical
2008 Dec 30
3
integration of tzinfo with icalendar
My interest in icalendar is more on the ical generation side instead of the ical parsing side. As such, I did a bit of work on a tzinfo mixin that will generate the timezone rules based on the tzinfo gem. This lets you do the following: estart = DateTime.new(2008, 12, 29, 8, 0, 0) eend = DateTime.new(2008, 12, 29, 11, 0, 0) tstring = "America/Chicago" tz =
2008 Feb 27
2
All Day Events
I must be stupid because this cannot be this hard. I''m trying to build an all day calendar event. In most clients it shows up as an entry at the top of the day rather than blocking out the whole day with an event. I have a bit of code that looks like this... cal.event do dtstart DateTime.parse("#{startDate.year()}-#{startDate.month()}-#{startDate.day()}") dtend
2006 Jun 28
2
webcal url
...s the event to the calendar event.user_id = "joe-bob@somewhere.net" event.timestamp = DateTime.now event.summary = "Meeting with the man." # We can output the calendars as strings to write to a file, # network port, database etc. cal_string = cal.to_ical send_data cal_string end -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060628/7e93a8e1/attachment.html
2010 Mar 12
0
Writing calendar files to .ics with more than one event.
...nding the corrupt event, this worked just fine and produced a correct .ics for each event. BTW, Have we thought of adding methods to the gem for merging/splitting .ics files? That might be useful. After looking into the errors with the first script, I noticed it is caused whenever you try to do a .to_ical on a Calendar object with more than 1 event. Am I missing something here? Any help or suggestions will be greatly appreciated. Thanks, justin