SOAP dateTime conversion class problem
| From: | Mike Carter | Date: | Thu, 15 May 2003 15:35:08 +0000 |
| Subject: | SOAP dateTime conversion class problem | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-593@lists.php.net to get a copy of this message | ||
Hi,
I seem to be having a few problems with the SOAP dateTime class.
I pass in the XML time string "2003-05-14T00:00:00.0000000+01:00"
$time = new SOAP_Type_dateTime($entry->EventDate);
The Unix timestamp returned is:-
soap_type_datetime Object
(
[ereg_iso8601] => (-?[0-9]{4})-([0-9]{2})-([0-9]{2}).....blah
[timestamp] => 1052953200
)
Doing date("d/m/Y", $time->timestamp) doesn't display the correct date, it's
a day in advance of the original 14/05/2003 !
Any idea what could be going on here?
Regards,
Mike C.
--
Mike Carter [web developer]
tel: 01925 758229 // fax: 01925 758023 // web: www.koa.uk.com
This message is confidential.
Unless you are the named addressee or their delegated representative you may
not use, disclose, or copy the contents of the e-mail. If you are not the
named addressee please notify the sender immediately and delete the material
from your computer. Any views or opinions contained in this e-mail are
solely those of the author unless expressly stated otherwise
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.480 / Virus Database: 276 - Release Date: 5/12/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________