I have an issue using xsd dataTime with regard to integrating a web client written in PHP using LAMP technology with a web service written in C# using WCF technology. The issue has to do with the fact that the two technologies use different, but valid, formats for dateTime.
This issue has been previously posted under Gmt php or UTC C# equivalence through SOAP , but there is no accepted answer.
My issue is that I must convert from the C# Z time format as a string to the alternative UTC dateTime format as a string that can then easily be converted to a PHP DateTime object. I'm hoping someone has a code snippet written in PHP that will do the string conversion. I find it hard to believe that such a code snippet is not readily available given the prevalence of web services an the fact that both WCF and LAMP are popular technologies.
An example of the conversion needed is when given an input, such as '2012-02-04T13:00:00Z', it will produce the correct UTC output, specifically '2012-02-05T00:00:00+11:00'. For details on how this conversion is done, see the accepted answer for xml schema Timezone .
Does anyone have a pointer to a PHP code snippet (or alternatively another language) for the Z time to UTC conversion of a string dateTime?