From b5e4835a039a7d8fa67d5d7a5145a6e2c153cef5 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Mon, 16 Jan 2006 09:40:20 +0000 Subject: [PATCH] some VCAL import fixes for repeating events --- calendar/inc/class.boical.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/calendar/inc/class.boical.inc.php b/calendar/inc/class.boical.inc.php index a599bcde62..f1b91a0835 100644 --- a/calendar/inc/class.boical.inc.php +++ b/calendar/inc/class.boical.inc.php @@ -500,6 +500,15 @@ break; } } + if(isset($vcardData['recur_enddate'])) + { + // reset recure_enddate to 00:00:00 on the last day + $vcardData['recur_enddate'] = mktime(0, 0, 0, + date('m',$vcardData['recur_enddate']), + date('d',$vcardData['recur_enddate']), + date('Y',$vcardData['recur_enddate']) + ); + } //echo "event=";_debug_array($vcardData); // now that we know what the vard provides, we merge that data with the information we have about the device