Bongiovanni Stéphane created AXIS2-5838:
-------------------------------------------

             Summary: Date - Different between value input and value output 
with WebService
                 Key: AXIS2-5838
                 URL: https://issues.apache.org/jira/browse/AXIS2-5838
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.6.3
            Reporter: Bongiovanni Stéphane


In a WebService using Axis2 libraries, we have in the xml one attribute in 
format Date.
But when the data is insert in the software, the value is different depending 
of the value.
We have the issue for example, when the value in the xml is : 1940-01-01 and 
when the value is insert in the software, the value is 1939-12-31.
In Java program, we have the following step:
*******extract
ColumnType columnType;
Object value = null;
if (!StringUtils.EMPTY.equals(colonneTypeMethod)) {
Method method = 
columnType.getValeur().getClass().getDeclaredMethod(colonneTypeMethod);
value = method.invoke(columnType.getValeur());
***********
ColumnType implements org.apache.axis2.databinding.ADBBean.
In the debug in Eclipse, we saw for the parameter "Value" the date: Sun Dec 31 
23:00:00 CET 1939.
It seems we have a time change between the input and the output.
But it is strange because if we put the value 2016-01-01, the ouput is ok .
Is there a way the fix it ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to