calisworktime() not working properly

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