Hi Members,I am trying to calculate the working hours between two different time using calworkhours function.It is giving perfect result for all the days except on Fridays. I have check my calendar setting as well . Friday's setting is same as other working days.I have pasted the Screenshot of Calendar and Expression along with it's result.
EscalationCalendar Image : Expression Rule and it's Result Image :
I am expecting 6 hours but it's giving 2 hours and it is same for every Friday.Please help on this ASAP.
Discussion posts and replies are publicly visible
Never noticed this, but turns out calworhours function is a real mess (or may be I'm missing something).
"3" seems like it'd be the valid result, if not for the calendar "end time" set at 5 pm. It makes me wonder whether it's sneaking in any of our normal unintuitive GMT conversion either before or after the results are evaluated?
Hey Mike ,
Can you please have a look at my screenshots at the top.Function is showing not giving results as expected. I have shared the Expression Result's Screenshot and Process Calendar Screenshot as well.For every Friday , it is giving me wrong result.
Smart guess. It seems like the timezone offset is first removed from the inputs and then the hours are calculated. I tried adding timezone offset to the the dateTime and it gave expected result.