Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting DatePicker date displayed with format without "-" breaks RulesEngine calculations #483

Closed
allan-on opened this issue Sep 15, 2020 · 0 comments · Fixed by #484
Closed
Assignees
Labels

Comments

@allan-on
Copy link
Contributor

There's functionality to set the date display format for the DatePicker in the DatePickerFactory.
IF the format is set e.g.
Form form = new Form(); form.setDatePickerDisplayFormat("dd MMM yyyy");
Then the date calculations

  • addDuration()
  • formatDate()
  • addDuration()

are broken because the Utils.reverseDateString(dateString, "-") throws an NPE as a result of the missing "-" delimiter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant