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 "Christophe Denis (JIRA)" <ji...@apache.org> on 2007/06/01 15:14:15 UTC

[jira] Commented: (AXIS2-2717) Cannot receive DateTime field contain in milosecond part more than three digits

    [ https://issues.apache.org/jira/browse/AXIS2-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500699 ] 

Christophe Denis commented on AXIS2-2717:
-----------------------------------------

In my opinion all SimpleDateFormat-Strings are wrong. Notice, that "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'" will put everytime the character Z at the end of a date. When it's desired to place the time difference at the end it should be "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSZ" !

Greetings, Christophe Denis

> Cannot receive DateTime field contain in milosecond part more than three digits
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2717
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2717
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.2, nightly
>         Environment: All
>            Reporter: Wlodzimierz Dutkiewicz
>
> When client, generated as adb, receive DateTime contain in milisecond part more than three digits (for example: 2007-05-25T12:52:21.000000000+02:00) Axis2 return Exception: Unparseable date: "2007-05-25T12:52:21.000000000GMT+02:00".
> This happends, because in source code adb/src/org/apache/axis2/databinding/utils/ConverterUtils.java class SimpleDateFormat in any places is created using three digits in format  string (f.e. "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").
> I suggest lenghten miliseconds format string to nine digits (f.e. "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'").
> This change was tested by me and I didn't notice any problems.
> Best regards
> WD

-- 
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