Rule behaving differently in Process model and expression editor

Hello,

Wrote a simple rule to check the future date. Below is the expression.

if(ri!inputDate>todate(tostring(now())),1,0)

Problem:

1. In process model: Before 10:00 AM, it is returning "1", for today date., after 10 :00 AM it is returning "0".

2. In expression editor: Before 10:00 AM, it is returning 0, for today date., after 10 :00 AM also, it is returning 0. 

System Timezone AEST. selected in configuration.

 

Thanks

  Discussion posts and replies are publicly visible