axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Denis (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2762) Wrong SimpleDateFormat
Date Mon, 04 Jun 2007 06:48:59 GMT
Wrong SimpleDateFormat
----------------------

                 Key: AXIS2-2762
                 URL: https://issues.apache.org/jira/browse/AXIS2-2762
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.2
            Reporter: Christophe Denis


I think in some files the SimpleDateFormat is wrong described. In several files for adb databinding
there is a format like "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'". Shouldn't it be like that: "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
?? I got a problem when I tried to serialize an object, because adb databinding printed everytime
the letter Z at the end of the date types.
In order that the letter Z will be replaced by the time difference it shouldn't be quoted.

Example: 
=======

SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");   -> results in: 2007-06-04T08:43:12.345Z
but 
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");   -> results in: 2007-06-04T08:43:12.345+01:00

Files in which I found this issue:
org\apache\axis2\databinding\typemapping\SimpleTypeMapper.java
org\apache\axis2\databinding\types\Time.java
org\apache\axis2\databinding\utils\ConverterUtil.java

I didn't check if there are some other places with the same issue, espacially regarding other
packages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message