Where does the timestamp come from? The Hosting Server? My phpBB has the correct time but Ajax Chat is 8 or 9 mins behind...Bogey wrote:gr00vytunes wrote:gr00vytunes wrote:Does anyone know where Ajax gets its time from? I am posted messages and they are 8 or 9 mins behind time??
Thanks in Advance
Anyone?Line 1980-2000 in file AJAX_CHAT_PATH/lib/class/AJAXChat.phpCode: Select all
function getChatViewMessageXML( $messageID, $timeStamp, $userID, $userName, $userRole, $channelID, $text ) { $message = '<message'; $message .= ' id="'.$messageID.'"'; $message .= ' dateTime="'.date('r', $timeStamp).'"'; $message .= ' userID="'.$userID.'"'; $message .= ' userRole="'.$userRole.'"'; $message .= ' channelID="'.$channelID.'"'; $message .= '>'; $message .= '<username><![CDATA['.$this->encodeSpecialChars($userName).']]></username>'; $message .= '<text><![CDATA['.$this->encodeSpecialChars($text).']]></text>'; $message .= '</message>'; return $message; }
cheers
Cheers