From 49de506d6f9576b845760480377dbccfba8382ea Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Tue, 6 Oct 2009 14:29:46 +0000 Subject: [PATCH] also export servertime if event has no recur_enddate - it could be a weekly or monthly recurring event --- calendar/inc/class.calendar_ical.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index cef630274c..7c3745e08a 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -242,9 +242,16 @@ class calendar_ical extends calendar_boupdate $servertime = true; $date_format = 'ts'; // read the event again with timestamps - $event = $this->read($event['id'], 0, false, 'ts'); + $event = $this->read($event['id'], 0, false, $date_format); } } + else + { + $servertime = true; + $date_format = 'ts'; + // read the event again with timestamps + $event = $this->read($event['id'], 0, false, $date_format); + } } if ($this->productManufacturer != 'file' && $this->uidExtension)