[
https://issues.apache.org/jira/browse/AXIS2-4099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721071#action_12721071
]
Amila Chinthaka Suriarachchi commented on AXIS2-4099:
-----------------------------------------------------
public static void main(String[] args) {
System.out.println("date ==> " +
ConverterUtil.convertToDate("2009-06-17-05:00"));
System.out.println("date ==> " +
ConverterUtil.convertToDate("2009-06-17-06:00"));
}
I ran with the above code and which worked fine with my jvm.
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
> ConverterUtil.convertToDateTime() is to lenient
> -----------------------------------------------
>
> Key: AXIS2-4099
> URL: https://issues.apache.org/jira/browse/AXIS2-4099
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4.1, 1.4, 1.3
> Reporter: Marcel Ammerlaan
> Priority: Minor
> Attachments: DateTimeBug.java
>
>
> When parsing an invalid date (as specified by the XSD Schema specification),
> Axis relies on the java.util.Calendar leniency to parse. E.g. 2008-02-31
> (31st of februari) is invalid according to
> http://www.w3.org/TR/xmlschema-2/#dateTime. convertToDateTime() returns the
> 2nd of march instead.
> This can be easily solved by setting the Calender leniency to false
> (setLenient(false)).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.