Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Wrong evaluation of LocalDateTime in org.drools.modelcompiler.util.EvaluationUtil #40

Open
radtke opened this issue Dec 23, 2023 · 0 comments
Assignees

Comments

@radtke
Copy link

radtke commented Dec 23, 2023

Given:

  • drools 8.44.0.Final
  • drools.dateformat="yyyy-MM-dd'T'HH:mm"
  • RuleUnitData with SingletonStore<LocalDateTime> checktime

The LHS condition
exists /checktime[this >= "2000-01-01T16:35"]
will evaluate to true for a given checktime-value of "2000-01-01T11:11" (wrong), because EvaluationUtil.convertDateTimeLocal(String s) will always set time to 00:00.

@mariofusco mariofusco self-assigned this Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants