How can I set the operating hours of my application

“I want to set an operating schedule for my application (from 08:00 to 17:00). When the condition is false, log in the user. Is there a possibility?”

So basically, you want to disable access to your app during certain hours, right?

Off the top of my head, you can simply have a page is loaded workflow with the condition of when time is x

The action on that workflow is to navigate the current user to a different page, a page that I assume would tell the user that the app is not available at the moment.

Hope this helps!

Best,
Nino

1 Like

This wont Work.

if i loaded the page during operation hour.
and that Page will still Continue function AFTER operation hour, as long as i dont RELOAD entire page.

you need a work flow with “everytime” or “every 1 min”
check if current time, extract Hours > XXX and < XXX… trigger YYY

1 Like

You can’t turn off the internet!!! :slight_smile:

1 Like

Ah yeah, I didn’t consider that

Thanks @zhihong0321!

thanks !!
However, I opened a new workflow here and found myself not knowing which option I select for it to check this time. Would you help me?

there are plenty way to do it. and very differnent.

You have a standard Operation hours? (Entire site)
OR, your App operation hours = variable? ( by merchant? by user? )

1 Like

the time would be from 08:00 to 17:00 (Brazil time)

every 60 seconds.
if current date extract Hours < 8 AND
current date extract Hours >=17

workflow =
navigate to “XXX Page”

  • how about international visitor? still follow brazil time?
1 Like

This is what I initially thought of too, however, if an end user has bookmarked the target page, they could log in and after being redirected to the alternative “off hours” page could then just click the bookmark and go into the “on hours” page anyway.

I would create a “Do every X seconds” workflow on the “on hours” page that checks the time, and once the conditions are met they are redirected or logged out. This way nobody could bypass the initial redirect and go to the “on hours” page manually.


I think this is the best solution, I’ll test it today and get back to you. Thank you very much!

there is a problem. i havnt test.

user not share the same timezone as brazil. may have different result