Hi, for many of my DSL rules containing something like
val dateTime = (Window_Terasse_Switch_Last_Open_time.state as DateTimeType).getZonedDateTime(ZoneId.systemDefault())
I get the error message
2025-04-27 16:17:00.451 [ERROR] [.handler.AbstractScriptModuleHandler] - Script execution of rule with UID 'home-80' failed: 'getzoneddatetime' is not a member of 'org.openhab.core.library.types.DateTimeType'; line 2574, column 22, length 98 in home
Any idea on how to solve this?