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

Fix date parsing in executable model on non English locale

    Details

    • Sprint:
      2019 Week 29-31
    • Story Points:
      2
    • Steps to Reproduce:
      Hide

      Run ComplexRulesTest on a system with different Locale than English.

      Show
      Run ComplexRulesTest on a system with different Locale than English.
    • Docs QE Status:
      NEW
    • QE Status:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tzimanyi Tibor Zimanyi
                Reporter:
                tzimanyi Tibor Zimanyi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: