Bug #44383 [Com]: PHP DateTime not converted to xsd:datetime

From: Date: Tue, 18 Jul 2017 16:34:04 +0000
Subject: Bug #44383 [Com]: PHP DateTime not converted to xsd:datetime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210110@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=44383&edit=1

 ID:                 44383
 Comment by:         f dot rauch at outlook dot com
 Reported by:        kevin dot craft at gmail dot com
 Summary:            PHP DateTime not converted to xsd:datetime
 Status:             No Feedback
 Type:               Bug
 Package:            SOAP related
 Operating System:   *
 PHP Version:        5.*, 6 (2009-08-07
 Assigned To:        mj
 Block user comment: N
 Private report:     N

 New Comment:

This still seems to be an issue with PHP 7, regardless of OS. Has there been any progress so far?
This bug does make it impossible to properly work with the SOAP package if the API one is working
with requires proper xsd:dateTime values.


Previous Comments:
------------------------------------------------------------------------
[2016-12-19 19:50:46] contact at shaunoneil dot eu

Is there at least a workaround for this?  As it stands, if the remote API expects an xsd:dateTime, 
my only option is a different language?

------------------------------------------------------------------------
[2013-08-31 19:05:30] eric dot dorr at de-cix dot net

please fix this important SOAP feature.

------------------------------------------------------------------------
[2013-02-28 13:01:51] stefan dot giesecke at avl-investmentfonds dot de

Please fix this issue, prefer the example from  thomas dot lallement at 9online dot fr. Optional or
not optional I don't care.

------------------------------------------------------------------------
[2013-02-18 00:33:54] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

------------------------------------------------------------------------
[2013-01-21 18:37:58] thomas dot lallement at 9online dot fr

For me, when you call $client->getCurrentDate(), the expected result would be to have a PHP
DateTime object rather than a string.

So the expected result should be:

DateTime Object
(
    [date] => 2008-03-06 00:00:00
    [timezone_type] => x
    [timezone] => xxxx/xxxxx
)

What do you think about this? At least an option could be provide throught the SoapClient to permit
this behavior.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=44383


--
Edit this bug report at https://bugs.php.net/bug.php?id=44383&edit=1


Thread (29 messages)

« previous php.bugs (#210110) next »