I have defined a process calendar called "US calendar".
I defined working hours for 14.2.2024 to be from 8am to 4pm.
When calling calisworktime(datetime(2024,2,14,15), "US calendar") (checking if 4pm is working time) it returns true.
Then i set working hours for 14.2.2024 to be from 8am to 5pm.
Then i called calisworktime(datetime(2024,2,14,16), "US calendar") (checking if 5pm is working time) and it returned false.
It appears that calisworktime() function does not behave consistently. I have tried searching for this problem but it appears nobody else has experienced it.
Discussion posts and replies are publicly visible
Working with time can become very confusing. I wrote a blog post about how Appian deals with time.
https://appian.rocks/2023/02/13/working-with-time-in-appian/