Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5275

ConverterUtil.convertToDate expects wrong time format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.5, 1.6.1
    • 1.7.0
    • adb
    • None

    Description

      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.

      Attachments

        1. AXIS2-5275.patch
          2 kB
          Ranjana Prasad

        Activity

          People

            Unassigned Unassigned
            joe_leads Johannes Lietz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: