Possible workday() bug/undefined behaviour

BenBl
New Member

Hey all,

I’m testing out workday() in a template. It’s Saturday, Feb 20th. Workday(today(),0) is returning Sunday, Feb 21. I’m not sure what behaviour one should get doing (Saturday, 0), but it almost definitely shouldn’t be returning a weekend day.

This isn’t mentioned in the workday() docs. What should happen?

Edit: Possibly related: now() is seemingly returning the wrong time. The docs for date and time say it should reflect the current user’s time – but as you can see in the screenshot (computer clock is bottom right), that is not the case. My timezone is set correctly to PST.

1 7 459
7 REPLIES 7
Top Labels in this Space