RE: [SOAP] problem with SOAP's date/time type
| From: | Mike Carter | Date: | Fri, 03 Oct 2003 09:09:26 +0000 |
| Subject: | RE: [SOAP] problem with SOAP's date/time type | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1098@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Javier Muniz [mailto:jmuniz@granicus.com]
>
> It looks like the dateTime type in the SOAP library might be
> reporting times an hour ahead of the actual time. Can
> someone else verify this? Want to make sure it's not
> something wrong with my install/setup.
Yes I've struggled with this for half a year... And nobody really said
anything when I posted about it here :-(
However, I've kinda got it sorted now (I think). It all depends on how
you go about using the class to convert from UTC->timestamp.
This works:-
$dateTimeObj = new SOAP_Type_dateTime;
$_SESSION['auth']['ldate'] =
$dateTimeObj->toUnixtime($User->LastLoginDateTime);
Regards,
Mike c
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________