[SOAP] NUSOAP datetime UTC issue

[email protected] (allann)
Newsgroups php.soap
Message-ID <[email protected]>
I am calling a SOAP web service using the nusoap class library, I am able to
call the web method correctly however 1 of the parameters that i must pass
in is a datetime in UTC format. i can create the correct format and time in
my client code.
eg. 2008-04-11T10:00:25 00:00
however when i pass this datetime into the soap method nusoap alters the
datetime to the one based on my local machine (BST). 
A simplified version of the code i am using is:

                //create date in correct format 2008-03-17 14:29:36Z
		date_default_timezone_set('UTC');
		$date = new DateTime();
			
		$params = array(
			'Username'         => $username,
			'RequestDateTime'  => $date->format(DATE_RFC3339),
			'ClientId'         => $clientId,
		);
	
		$wsdl="http://localHost/twoFac/service.asmx?WSDL";
		$soapclient = new soapclient($wsdl,true);
		
		$proxy = $soapclient->getProxy();
		$result = $proxy->ValidateFirstFacPassword($params);

All other variables are sent unaltered.
Thanks in advance Nigel. 

-- 
View this message in context: http://www.nabble.com/NUSOAP-datetime-UTC-issue-tp16627310p16627310.html
Sent from the Php - Soap mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.