Hello,

I will describe a solution I found (it is not my solution, but the original source is not in English) to a problem I faced when using the owncloud calendar. Am posting it here, so that others will find it via google.

The problem is that certain calendar events are not shown when viewing the calendar through a browser. The same calendar events are shown properly if you subscribe to the calendar via Thunderbird+Lightning, or any other calendar software.

I am using owncloud v 4.5.5 on a debian squeeze amd64 box.

The problem is that the .ics file I uploaded to initially populate the calendar entries was apparently faulty. Some of the entries had incorrect timezone data, and instead of showing those entries in the browser, I found the following in the apache error.log
----
[Thu Jan 31 21:25:17 2013] [error] [client 213.103.196.57] PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message '00001231T000000Z is not a valid DateTime or Date string' in /var/www/owncloud/3rdparty/Sabre/VObject/Property/DateTime.php:170\nStack trace:\n#0 /var/www/owncloud/3rdparty/Sabre/VObject/Property/DateTime.php(140): Sabre_VObject_Property_DateTime::parseData('00001231T000000...', Object(Sabre_VObject_Property_DateTime))\n#1 /var/www/owncloud/3rdparty/Sabre/VObject/Component/VCalendar.php(118): Sabre_VObject_Property_DateTime->getDateType()\n#2 [internal function]: Sabre_VObject_Component_VCalendar->expand(Object(DateTime), Object(DateTime))\n#3 /var/www/owncloud/lib/vobject.php(205): call_user_func_array(Array, Array)\n#4 /var/www/owncloud/apps/calendar/lib/app.php(410): OC_VObject->__call('expand', Array)\n#5 /var/www/owncloud/apps/calendar/lib/app.php(410): OC_VObject->expand(Object(DateTime), Object(DateTime))\n#6 /var/www/owncloud/apps/calendar/ajax/events.php(28): OC_Calendar_App::generateEventOutput(Array, Object(DateTime), Object(DateTime))\n#7 /var/www/ in /var/www/owncloud/3rdparty/Sabre/VObject/Property/DateTime.php on line 170, referer: http://<website-name-removed>/owncloud/?app=calendar
----

Now, I don't even know how those faulty entries were created (IF they are faulty. Everything works fine with all my other calendaring software). And even if the entries were faulty, silently preventing certain entries from being visible is NOT good.

A similar problem was posted on the Forums

http://forum.owncloud.org/viewtopic.php?f=3&t=4686

But apparently this did not improve anything.

I finally found a solution, when I stumbled upon this page

http://glumpundzeug.wordpress.com/2013/01/23/owncloud-migration-v3-auf-4-5-6-ical-import-schlagt-fehl/

(I don't understand what is written there) but using

sed -i 's/CREATED:0000/CREATED:1970/g' myfile.ics

and then reuploading the modified .ics file fixed the problem.

I hope this post helps someone and that this issue gets fixed, or that the code is modified to report the failure noisily to the user.

Regards,
Sagar
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to