public function updateBooking(ilViteroRoom $room, $a_group_id)
 {
     try {
         $this->initClient();
         // Wrap into single group object
         $booking = new stdClass();
         $booking->bookingid = $room->bookingid;
         if ($room->isCafe()) {
             $booking->start = $room->getStart()->get(IL_CAL_FKT_DATE, 'YmdHi', self::CONVERT_TIMZONE);
             $booking->end = $room->getEnd()->get(IL_CAL_FKT_DATE, 'YmdHi', self::CONVERT_TIMZONE);
         } else {
             $booking->start = $room->getStart()->get(IL_CAL_FKT_DATE, 'YmdHi', self::CONVERT_TIMEZONE_FIX);
             $booking->end = $room->getEnd()->get(IL_CAL_FKT_DATE, 'YmdHi', self::CONVERT_TIMEZONE_FIX);
         }
         $booking->startbuffer = $room->getBufferBefore();
         $booking->endbuffer = $room->getBufferAfter();
         #$booking->timezone = self::WS_TIMEZONE;
         $this->getClient()->updateBooking($booking);
         $GLOBALS['ilLog']->write(__METHOD__ . ': Last request: ' . $this->getClient()->__getLastRequest());
         $GLOBALS['ilLog']->write(__METHOD__ . ': Last response: ' . $this->getClient()->__getLastResponse());
     } catch (SoapFault $e) {
         $code = $this->parseErrorCode($e);
         $GLOBALS['ilLog']->logStack();
         $GLOBALS['ilLog']->write(__METHOD__ . ': Update vitero group failed with message code: ' . $code);
         $GLOBALS['ilLog']->write(__METHOD__ . ': Last request: ' . $this->getClient()->__getLastRequest());
         throw new ilViteroConnectorException($e->getMessage(), $code);
     }
 }