// add this to allow the update of the time DateTimeSend, DateTimeSend1 and DateTimeSend2 echo "<pre>"; switch ($type) { case "dateTime": if ($version == 1) { // print ids // echo " ids " . $_GET['invitedIds']; // convert string ids to array // $idArray = explode(',', $_GET['invitedIds']); //set timezone to get the time foreach ($idArray as $id) { // print the specific time echo " {$id} time server " . $mc->date_time; //setting first day of the first time send required: dateTime //get the specific timezone of the user $timezone = $lookBookDatabase->getUserTimeZone($id); echo "<br>this is time zone {$timezone} <br>"; //set timezone to get the time $time->setTimeZoneDateTime($timezone); //concat server date and send time $dateTime = $time->concatDateAndTime($time->getTimezoneDate(), $time->getTimeRemoveDate($_GET['dateTime'])); echo "Send time " . $dateTime; echo "Server Date Timezone = " . $time->getTimezoneDate(); //convert the time string send from the admin to date $dateTime = date('Y-m-d H:i:s', strtotime($dateTime)); $location = 'BRISBANE'; //add dateTimeSend from 1 - 4 dates $response = $time->addDateTmeSend($dateTime, $time->getTimeZoneDateTime24(), $id, $database, $invited_status); } } else { $time->setTimeZoneDateTime($timezone);