Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Calendar and Outlook.


Reply


6 Posts   1429 Views

Avatar
doliner

Community Member, 4 Posts

18 July 2009 at 9:20am

Edited: 18/07/2009 9:21am

I would like to be able to add a calendar event from my site to our users outlook calendar but when I try to import the .ics file I get this:

"This error can appear if you have attempted to save a recurring Lunar appointment in iCalendar format.
To avoid this error, set the appointment option to Gregorian instead of Lunar."

If I open the .ics file in notepad I get this:

BEGIN:VCALENDAR
PRODID:-//dev.heartnet3//EN
CALSCALE:GREGORIAN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;TZID=US-Eastern:20090720T170000
DTEND;TZID=US-Eastern:20090720T230000
URL:/silverstripe/shcc-calendar/
SUMMARY;CHARSET=UTF-8:Happy Hour
END:VEVENT
END:VCALENDAR

First off this is not a recurring event, I'm not sure if that's just outlook being an awesome mail client or if there is something I am not seeing in the .ics file that flags it a recurring event.

Is there anything I can do to get this to work?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

19 July 2009 at 6:02am

Well, Outlook is definitely awesome, no question about that. That's kind of annoying that it has such a requirement because there's no way to predict where the ICS file will end up, so setting ICS files to use the lunar CALSCALE property will have a global effect and may result in lost functionality for everyone using normal mail clients.

I've made the CALSCALE property a configurable param in the Calendar class. It defaults to GREGORIAN, but you can override it in your mysite/_config.php.

Calendar::set_param('calScale','LUNAR');

See if that works for ya.

Also, ICS files are not set up to handle recurring events yet. Right now you just get the single date that you click on. Eventually, I want to have two buttons, one for "Add this date to calendar" and one for "Add all dates to calendar"

Avatar
doliner

Community Member, 4 Posts

21 July 2009 at 2:10am

I get this:

Fatal error: Access to undeclared static property: Calendar::$calScale in /var/www/silverstripe/event_calendar/code/Calendar.php on line 50

Avatar
UncleCheese

Forum Moderator, 4096 Posts

21 July 2009 at 2:36am

Umm.. Well, it's there. I'm looking at it right now. When did you last update your SVN?

Avatar
doliner

Community Member, 4 Posts

21 July 2009 at 2:43am

Never pulled from SVN just grabbed the lastest release.

modules-event_calendar-r51.tar.gz

Avatar
UncleCheese

Forum Moderator, 4096 Posts

21 July 2009 at 2:46am

Hmm.. Well, the SVN is on revision 60 now. So I'm not sure what's wrong with the ZIP file. It's supposed to automatically update, but it's way behind. Best to use SVN because this project gets updated very frequently.