You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Chandresh Taunk (JIRA)" <ji...@apache.org> on 2012/11/06 19:52:12 UTC

[jira] [Closed] (AXIS2-5446) ADB outputs incorrect DateTime value when daylight savings is in effect

     [ https://issues.apache.org/jira/browse/AXIS2-5446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandresh Taunk closed AXIS2-5446.
----------------------------------

    Resolution: Not A Problem

Wrong interpretation of time zones; not an issue.
                
> 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, java 1.6.0_33 & 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org