Hi, I am confused as to why my constraint is giving me different results than specified.
Here I have a constrain to search current date and where I change the time to match that which is in the database. Database date would be (03/11/2024 12:00 am)
Thanks for the bit of advice. I implemented it immediately.
I do not see how it can be a timezone issue with my given scenario. It is a daily recurring event that has to search a database if there is a record with today’s date. All settings is set to current users timezone, where only one user has access to this workflow.
I have never changed any timezone settings because this app is only used locally. So even if all the users used this workflow it would still be the same timezone.
So I guess the question is once the recurring event runs at 6am, which timezone does it use? The original users timezone or the system timezone that has a 8 hour difference?
If you haven’t defined the time zone for the Recurring event, then I’m pretty sure it will run in UTC (which would explain the 2 hour discrepancy in your constraint).
So I’d start by changing the time zone settings for the Recurring event to see if that fixes things.
I played around with it most of the day and it really seems broken. When in development mode, the server logs state the search constraint is yesterday 10pm and the step by step debugger state today 12am. However the debugger shows no results with the search constraint where the server logs show results found and made the changes as per the workflow. BUT that only happens on development mode, Live mode no results are found and no changes are made.
Well if no results are found then either there is no data to find (that matches the search constraints) or privacy rules are preventing it from being found. It can only be one of those two things.