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
Mathieu Drouin prakhar2511 Timezones are the same UTC + 01:00. The article is great, but it doesn't help with this specific problem. I think this is just a bug in Appian.
Try using userdatetime instead of the regular datetime function.