Oh, sorry. I didn’t note that the types are differen. The following article shows some possibilities to convert Joda DateTime to DateTimeType. Maybe it helps:
Attention: This article is now also available on the openHAB 2 documentation page. If you want to add improvements or additions, please do so there.
http://docs.openhab.org/configuration/rules-dsl.html#conversions
Interacting with Items in rules
A frequent operation in rules is to calculate other values from Item states or compare Item states against other values or perform other operations that are either responses to changes in item states or intended to change the item state. For a complete…