Chandresh Taunk created AXIS2-5446:
--------------------------------------
Summary: ADB outputs incorrect DateTime value when daylight
savings is in effect
Key: AXIS2-5446
URL: https://issues.apache.org/jira/browse/AXIS2-5446
Project: Axis2
Issue Type: Bug
Components: adb
Affects Versions: 1.6.2
Environment: Windows 7, Tomcat 5.5 & Axis2-1.6.2
Reporter: Chandresh Taunk
Replication :
Create a simple service :
import java.util.Calendar;
public class ServerTimeService {
public Calendar getServerTime() {
Calendar cal = Calendar.getInstance();
return cal;
}
}
Add the following snippet in services.xml :
<service name="ServerTimeService">
<parameter name="ServiceClass">ServerTimeService</parameter>
<operation name="getServerTime">
<messageReceiver
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
SOAP Request :
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:test="http://">
<soap:Header/>
<soap:Body>
<test:getServerTime/>
</soap:Body>
</soap:Envelope>
SOAP Response:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns:getServerTimeResponse xmlns:ns="http://">
<ns:return>2012-11-02T12:38:02.536-07:00</ns:return>
</ns:getServerTimeResponse>
</soapenv:Body>
</soapenv:Envelope>
The computer is in Pacific Time Zone; and on 2nd Nov 2012; daylight savings is
on; so the value I'd expect is 2012-11-02T12:38:02.536-08:00
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]