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
"Time range" condition issue
Moderator: Martin
-
- Posts: 12
- Joined: 14 Dec 2015 10:48
"Time range" condition issue
- Attachments
-
- Screenshot_20161003-081307.png (62.9 KiB) Viewed 8324 times
-
- Screenshot_20161003-081300.png (61.62 KiB) Viewed 8324 times
-
- Posts: 12
- Joined: 14 Dec 2015 10:48
Re: "Time range" condition issue
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
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.
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.