diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index b21ab3fe00..ba3fa814f3 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -300,7 +300,7 @@ class OC_Calendar_Object{ * This function creates a date string that can be used by MDB2. * Furthermore it converts the time to UTC. */ - protected static function getUTCforMDB($datetime){ + public static function getUTCforMDB($datetime){ return date('Y-m-d H:i', $datetime->format('U') - $datetime->getOffset()); } @@ -802,4 +802,9 @@ class OC_Calendar_Object{ $event = self::find($id); return $event['calendarid']; } + + public static function isrepeating($id){ + $event = self::find($id); + return ($event['repeating'] == 1)?true:false; + } }