icalendar

Attach iCal File in MFMailComposerController?

点点圈 提交于 2019-12-08 11:52:09
问题 I want to add Event in my iPhone Calendar , i Successfully add the Event in my iPhone calendar. But, i want to get the all Current Month event and i want to attach that Event file (.ical) in my MFMailComposer . 回答1: Reading events is very simple. // Create the predicate from the event store's instance method NSPredicate *predicate = [store predicateForEventsWithStartDate:startOfTheMonth endDate:endOfTheMonth calendars:nil]; // Fetch all events that match the predicate NSArray *events = [store

Importing iCal calendar into MySQL database

时间秒杀一切 提交于 2019-12-08 11:06:07
问题 I've searched through a lot of sites, but all of them do in reverse already what I've achieved , but not what I need. I need a way to import data FROM ICAL into a MySQL database, actually just one table and a few columns in a WordPress database. But I'm ignoring WordPress (as it messed up my export) and using direct database connection. Can any of you help me achieve this? Is importing ICAL so obviously simple that I'm thinking way too difficult? My ICAL docs setup: BEGIN:VCALENDAR VERSION:2

Outlook not importing VCS with timezones correctly?

风格不统一 提交于 2019-12-08 09:50:52
问题 On our web app in ASP, we have a module that generates VCS files to be imported into your calendar. This works fine if the client is on the same zone as us (GMT). But If I create an event which starts at 9am in UTC-01 for example, I still get the event as starting at 9am UTC/GMT, it's like it won't read the TZOFFSET This is the VCS generated. In this example the event is supposed to take place Dec 30th 2011 9am-10am in UTC-05 (New York). If I leave my time zone as GMT, I get the appointment

Email invitation via an iCal file

不打扰是莪最后的温柔 提交于 2019-12-08 09:02:28
I've been stuck on this problem for hours at this point and I can't figure out the problem. I would like to email(gmail) an invitation through an iCal file, It works(reciever can get a invitation and can click yes to add this invitation to reciever's calendar) if I send one event, but its failed(the gmail will just only show an invitation , and if i click yes that i want to add it to my calendar, its only add one invitation to my calendar) if I send two events. The code is the following: protected void Page_Load(object sender, EventArgs e) { MailMessage msg = new MailMessage("testxxx@gmail.com

External protocol request

巧了我就是萌 提交于 2019-12-08 08:54:28
问题 I am trying to build something that will return an .ics file and open it in Apple iCal. I have checked out websites that do something like this and noticed that in Chrome, a "External protocol request" dialog box comes up and then, if you click OK, iCal opens, whereas Safari just opens up iCal automatically. Firefox opens up a "launch application" dialog box which lets you choose which application to open it in; if you choose calendar then it opens. How do I get my application to evoke such

Does Outlook 2003 support iCal 2.0 spec for updating and deleting a calendar item?

早过忘川 提交于 2019-12-08 05:29:59
问题 We are working on an asp.net 2.0 web app that emails users an ical to save to their outlook 2003 calendar. We noticed none of the code to update or delete an item seem to work even though the ical 2.0 spec supports it. We are curious if Outlook 2003 just ignores this? Does Outlook 2007 act differently? We have situations where an event may change or be cancelled which fires off an email notification but the updated ical just adds a new event, it nevers deletes and or moves the original....

Email invitation via an iCal file

情到浓时终转凉″ 提交于 2019-12-08 05:25:15
问题 I've been stuck on this problem for hours at this point and I can't figure out the problem. I would like to email(gmail) an invitation through an iCal file, It works(reciever can get a invitation and can click yes to add this invitation to reciever's calendar) if I send one event, but its failed(the gmail will just only show an invitation , and if i click yes that i want to add it to my calendar, its only add one invitation to my calendar) if I send two events. The code is the following:

iCalendar invite is not showing RSVP buttons in email clients

痞子三分冷 提交于 2019-12-08 05:23:15
问题 I'm using PHPMailer to send email. My ics content is: BEGIN:VCALENDAR METHOD:REQUEST VERSION:2.0 PRODID:-//FooBar//FooBar Calendar//EN BEGIN:VEVENT UID:8f5a0777-bf6d-17d2-f14a-52e7feedf810 ORGANIZER;CN=Foo:foo@bar.com DTSTART:20140130T191500Z DTEND:20140130T194500Z DTSTAMP:20140129T144300Z SUMMARY:Foo Bar 11 DESCRIPTION: END:VEVENT END:VCALENDAR For some reason I don't see the expected RSVP buttons in any email clients. Both Gmail and Mac Mail simply include the ics as a file attachment, I

Want to connect to iCloud caldav server and add an event, preferably from PHP

谁都会走 提交于 2019-12-08 04:52:50
问题 I am trying to get a server script back end to connect to an iCloud calendar and add an event to a certain calendar. I have found a scrip that can connect to the iCloud server and scrape all the right info for URL's needed etc but can find no example or documentation on adding or at least syncing an event from a web based script, ideally php to an iCloud server caldav calendar. This is a script that can connect and get the necessary URLS http://icloud.niftyside.com/ But am struggling after

parse dates with icalendar and compare to python datetime

空扰寡人 提交于 2019-12-08 04:34:32
问题 I have an .ics file from which I would like to extract all of the events that occur on today's day. I think I'm having trouble converting the icalendar DTSTART and DTEND to python datetimes. I've tried to follow the documentation at icalendar.readthedocs.org. The list I'm getting is empty, which should not be the case. This is my code: import urllib2 import json from datetime import datetime from icalendar import Calendar, Event, vDatetime def getTodayEvents(icsFile): cal = Calendar.from_ical