Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5446

ADB outputs incorrect DateTime value when daylight savings is in effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.6.2
    • None
    • adb
    • None
    • Windows 7, Tomcat 5.5, java 1.6.0_33 & Axis2-1.6.2

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            chandresh Chandresh Taunk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: