I am using CF MX and consuming a .Net webservice (
http://book.livebookings.net/webservices-test/internal/service.asmx?wsdl). When I parse the result to retrieve datetime values they are returned adjusted based on the timezone differences between the servers.
This request:
<?xml version="1.0" encoding="UTF-8" ?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<SearchAvailabilityRequest
xmlns="
http://schemas.livebookings.net/OneFormat/Aggregator/Internal/1/0/">
<Languages>en-GB</Language
s>
<SessionId>DINNER</Session
Id>
<DiningDateAndTime>2008-07
-03T18:00:
00.000Z</D
iningDateA
ndTime>
<Size>2</Size>
<RestaurantSalesForceCusto
merIds>104
569</Resta
urantSales
ForceCusto
merIds>
<MaximumResults>10</Maximu
mResults>
<MaximumCharactersInDescri
ption>0</M
aximumChar
actersInDe
scription>
<ReturnPromotions>true</Re
turnPromot
ions>
<ReturnNonPromotions>false
</ReturnNo
nPromotion
s>
<ReturnSessionMessage>true
</ReturnSe
ssionMessa
ge>
<ReturnReturnMessage>true<
/ReturnRet
urnMessage
>
</SearchAvailabilityReques
t>
</soapenv:Body>
</soapenv:Envelope>
This is a snippet of the response including the time values I'm interested in:
<Result time="2008-07-03T17:30:00"
correlationData="24533">
<Return culture="en-GB">return time 20:00</Return>
</Result>
<Result time="2008-07-03T18:00:00"
correlationData="24533">
<Return culture="en-GB">Return time 20:30</Return>
</Result>
<Result time="2008-07-03T18:30:00"
correlationData="24533" />
<Result time="2008-07-03T19:00:00"
correlationData="24533" />
<Result time="2008-07-03T19:30:00"
correlationData="24533" />
<Result time="2008-07-03T21:00:00"
correlationData="24533" />
<Result time="2008-07-03T21:30:00"
correlationData="24533" />
<Result time="2008-07-03T22:00:00"
correlationData="24533" />
<Result time="2008-07-03T22:30:00"
correlationData="24533" />
I need to display the result time in the local time of the remote server. However when I extract these values from the object returned from Coldfusion they are all adjusted by 2 hours as my dev server has different timezone settings than this remote server.
I have developed a work around based on the assumption that the remote server timezone is GMT however I'd rather just get CF/Axis to return me the raw time rather than adjusting it.
Can anybody help?
Start Free Trial