Problems with 1.8 and datetimetype

Hi Everyone

Since I have upgraded to 1.8, I have problems with my rules (sunset and sunrise)
rule "Controle des lumieres test"
when
Item Interrupteur1_ssol_garage changed or
Item Interrupteur1_ext_avant changed
then
var SunSetTime = (Soleil_coucher.state as DateTimeType).calendar.timeInMillis
var SunRiseTime = (Soleil_lever.state as DateTimeType).calendar.timeInMillis
if ( now.isAfter(SunSetTime) && now.getHourOfDay() <= 23 ) {
logInfo(“Activite”, “TTO@”)
}
end

They don’t work anymore…
Can someone help me please :slightly_smiling:

Thanks
Jose