axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranjana Prasad (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5275) ConverterUtil.convertToDate expects wrong time format
Date Wed, 28 Mar 2012 16:05:28 GMT

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

Ranjana Prasad commented on AXIS2-5275:
---------------------------------------

I added an extra condition to fix this issue and tested.   Please review my patch and provide
your feedback. 
                
> ConverterUtil.convertToDate expects wrong time format
> -----------------------------------------------------
>
>                 Key: AXIS2-5275
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5275
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.5.5, 1.6.1
>            Reporter: Johannes Lietz
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5275.patch
>
>
> Method ConverterUtil.convertToDateTime expects the string parameter to be yyyy-MM-ddThh:mm:ssZ,
e.g.: 2012-03-21T10:11:12Z. Is is correct according to ISO 8601.
> But if a datetime string is passed to ConverterUtil.convertToDate, this method expects
the format to be yyyy-MM-ddZhh:mm:ssT, e.g.: 2012-03-21Z10:11:12T, with 'T' and 'Z' interchanged.
Therefore when passing a correctly formatted datetime string to this method, a RuntimeException
"In valid string sufix" is thrown. 
> ConverterUtil.convertToDate must be fixed to accept ISO 8601 datetime strings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message