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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/06/06 20:37:26 UTC

[jira] Updated: (AXIS2-2762) Wrong SimpleDateFormat

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

Davanum Srinivas updated AXIS2-2762:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>
> 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