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
Hi mateos0001 I think whatt I have noticed with these function is that if our env is of diffferent timezone than these function does not act according to env . In that case we have to give conditions in such a way that it works according to our env timezone.