Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4362

Fix date parsing in executable model on non English locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.25.0.Final
    • 7.24.0.Final
    • executable model
    • None
    • 2019 Week 29-31
    • 2
    • Hide

      Run ComplexRulesTest on a system with different Locale than English.

      Show
      Run ComplexRulesTest on a system with different Locale than English.
    • NEW
    • NEW

    Description

      When parsing a date in a rule, e.g. in constraint ChildFactWithObject( date < "10-Jul-1974" ), the parsing fails with exception: java.time.format.DateTimeParseException: Text '10-Jul-1974' could not be parsed at index 3.

      This is caused by not providing English locale to the date formatter created in PackageModel.

      Attachments

        Activity

          People

            tzimanyi@redhat.com Tibor Zimányi
            tzimanyi@redhat.com Tibor Zimányi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: