Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1206

Using the escape character in calendarPattern fails.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • None
    • None
    • None

      I'm adding a test to TestSimpleTypes under scala-debug to illustrate this.

      test_dateTime_calendarPattern_EscapeCharacter

      Essentially, I should be able to have a format such as "yyyy-MM-dd'Thh:mm:ss" as the calendarPattern. The T is escaped by the single quote character. Currently the regex replacement code in PrimitivesDateTime does not remove the "'T" before validating the pattern contents for allowed characters. This results in an SDE and it shouldn't.

              slawrence Steve Lawrence
              twise Taylor Wise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: