Page 1 of 1

"Time range" condition issue

Posted: 03 Oct 2016 06:37
by krishnivas
Hi.

I want to execute certain actions based on time range conditions. For some reason, one of those conditions is not working correctly. At 8:12 am on a Monday, this time range condition "Time Range: Sat,Sun between 22:00 - 08:30" executes as "True". I tried the opposite by selecting only Monday in the condition and it executed with "False".

I am not sure what the issue could be?!

Best regards
Krishna

Re: "Time range" condition issue

Posted: 03 Oct 2016 06:42
by krishnivas
My bad. I guess I figured out what the problem was. The selected days correspond to the from time. I guess if I want the "To" of the time range to be on the weekends, the days I should select are Friday and Saturday.

Re: "Time range" condition issue

Posted: 03 Oct 2016 08:05
by MURTUMA
The "from-to" part defines only time of day. The week days only defines to which day(s) the time range applies. If you want to test againt a longer constant time period than 24h, you have to use other methods.

You can expose current date in a script with function getDate(). Starting from that, you can do calculations to determine a correct time range you want to test againts.

Or if you really want to use that condition, you can do so by adding multiple conditions following OR-logic.