"Time range" condition issue

Post your questions and help other users.

Moderator: Martin

Post Reply
krishnivas
Posts: 12
Joined: 14 Dec 2015 10:48

"Time range" condition issue

Post by krishnivas » 03 Oct 2016 06:37

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
Attachments
Screenshot_20161003-081307.png
Screenshot_20161003-081307.png (62.9 KiB) Viewed 8324 times
Screenshot_20161003-081300.png
Screenshot_20161003-081300.png (61.62 KiB) Viewed 8324 times

krishnivas
Posts: 12
Joined: 14 Dec 2015 10:48

Re: "Time range" condition issue

Post by krishnivas » 03 Oct 2016 06:42

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.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: "Time range" condition issue

Post by MURTUMA » 03 Oct 2016 08:05

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.

Post Reply