icalendar

How do I set the timezone in an iCal feed using DDay.iCal?

好久不见. 提交于 2019-12-03 16:07:24
I'm creating an iCal feed using DDay.iCal . It works, but I can't figure out how to set the timezone for the feed. Here's the basic code: iCalendar iCal = new iCalendar(); // <-- Set the Timezone HERE to PST (Pacific Daylight Time) Event evt = iCal.Create<Event>(); evt.Start = new iCalDateTime(meeting.MeetDate); evt.End = evt.Start.AddHours(4); // 4 hour event evt.Description = "This meeting..."; evt.Summary = "Event Summary"; Any ideas? In the other answer, the author fails to mention the line above those three lines that's in example 6: // First load a file containing time zone information

Add events to outlook calendar with php script

不羁岁月 提交于 2019-12-03 14:54:10
I want to add events to my outlook calendar from the php code. As outlook can accept a file of extension ".ics", I have tried this sample code to generate an ics file: <?php header("Content-Type: text/Calendar"); header("Content-Disposition: inline; filename=calendar.ics"); echo "BEGIN:VCALENDAR\n"; echo "VERSION:2.0\n"; echo "PRODID:www.testMeiCalendar.net\n"; echo "METHOD:REQUEST\n"; // requied by Outlook echo "BEGIN:VEVENT\n"; echo "DTSTART:20101231T230000\n"; echo "DTEND:20110101T010000\n"; echo "SUMMARY:New Years Eve Reminder\n"; echo "LOCATION:Downtown\n"; echo "DESCRIPTION:Let's get

UIDocumentInteractionController unable to add ics file to calendar

ぃ、小莉子 提交于 2019-12-03 12:57:47
问题 I am trying to open an ics ( Calendar ) file within my iOS application . For debug purposes i have added a ics file to my bundle of a calendar event created within iCal. I am using UIDocumentInteractionController to present the data of the calendar invite with the hope of letting the user add it to their calendar. However on presenting the UIDocumentInteractionController with in ics as the source file, it correctly shows all the data related to the event, however the button 'add to calendar '

How can I add an ICS meeting automatically to the Organizer's calendar?

你说的曾经没有我的故事 提交于 2019-12-03 12:53:17
问题 Our java application generates ICalendar files using ical4j, and sends them out to users as part of an HTML e-mail notification. A couple of users (the Organizers of the meeting) report that the the "Accept", "Reject", etc. buttons for the meeting are grayed out, and unclickable. The meeting is not added to the Organizer's calendar. How can I force the meeting to be added for the Organizer? I configured the server temporarily to send the .ics file as an attachment (instead of inline), so that

Start date returns in some cases when using google-rfc-2445 (iCalendar)

☆樱花仙子☆ 提交于 2019-12-03 12:47:07
I ran through a lot of RRULEs just for testing out the performance of google-rfc-2445 (a Java implementation of IETF RFC 2445 iCalendar ). I saw that I got the start date back in some cases in the returning list from the method. The test is very simple: private static void runGoogleTests() throws ParseException { DateTimeZone dtz = DateTimeZone.UTC; DateTime dtStart = new DateTime("2014-11-22T00:00:00Z", dtz);//SATURDAY DateTimeIterable dti = DateTimeIteratorFactory.createDateTimeIterable("RRULE:FREQ=WEEKLY;COUNT=10;BYDAY=MO", dtStart, dtz, true); System.out.println("Size of iterable = " +

Is there a tool that allows visualization of crontab entries? [closed]

依然范特西╮ 提交于 2019-12-03 12:37:08
I have crontabs for many machines, and wanted to see what started when, and to ensure load on the database server would be fine. Is there a tool that either converts crontab entries to iCal, or a tool that directly does visualization? I don't have a great cron specific answer for this but in case its helpful there are alternative schedulers which give you more information about the running jobs from a central view, something like Cisco's Tidal Scheduler 来源: https://stackoverflow.com/questions/9183796/is-there-a-tool-that-allows-visualization-of-crontab-entries

Does SharePoint 2010 support the iCalendar format?

大兔子大兔子 提交于 2019-12-03 12:28:44
Sounds like a very silly question, but I tried, and it isn't too easy to find a simple answer to this simple question on google. The longer story: Before I started my search, I just took it for granted that SharePoint provides a web service to access a calendar using iCal. But after having searched I fear I was totally wrong. I just don't want to believe it. Not even in SharePoint 2010? Twelve years after the standard was published ?! I found a blog about implementing an iCal export, but to be honest, implementing it clean, complete and bugfree, and ideally even two-way is just too much of an

Send email to Outlook with ics meeting appointment

老子叫甜甜 提交于 2019-12-03 12:23:37
问题 I want to send an email with appointment\meeting (ICS) to Outlook client. When the user receive the email he should accept the meeting invitation and automatically the meeting goes to the calendar and the email is automatically deleted. I'm using this code: public void Sendmail_With_IcsAttachment() { MailMessage msg = new MailMessage(); //Now we have to set the value to Mail message properties //Note Please change it to correct mail-id to use this in your application msg.From = new

PHP Date to iCal date format for DTSTART

一个人想着一个人 提交于 2019-12-03 12:20:49
Is there an easy way to get the correct format for an iCal DTSTART using php date? I need the format to look like: 20111008T110000 or 20111008 (that one is easy) if I don't have any time. Does PHP date have a quick way to do this, specifically one that adds the time or removes it when needed? Viktor There isn't any native PHP function or date format that I'm aware of, so you'll need to create your own function. Something like this: function getIcalDate($time, $inclTime = true) { return date('Ymd' . ($inclTime ? '\THis' : ''), $time); } As hakre pointed out in a comment, the date formatter can

How to generate .ics file using PHP for a given date range and time [closed]

让人想犯罪 __ 提交于 2019-12-03 09:07:28
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . I am trying to find an effective method to generate a downloadable ".ics" file using PHP, based on a given date range (start date - end date) and reminder time. Could any one provide me a sample PHP code to create this feature. m4t1t0 http://web.archive.org/web/20120419230026/http://jamiebicknell.tumblr.com/post/413492676/ics