Please see the OH3 release notes in section “rules”:
Rules now use Java Time API instead of Jodatime so some expressions need to be adapted:
* `getHourOfDay → getHour, getMinuteOfHour → getMinute, getMonthOfYear → getMonthValue`
* Some simple `>`and `<` comparisons may no longer work and you may need to use `isAfter()/isBefore()` instead.
See also this thread: DateTime Conversion (openHAB 3.x)
And please use the search functionality of the forums next time.