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
- What timezone is the calendar in?
- What timezone are you in?
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.
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/
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.