I am validating a date field in a test action. What timezone will this use? In my logic, I set the field using the tenant’s time zone, so I want to know how the test suite evaluates today’s date.
So when the “Validate Todays Date” action option evaluates the expected date, it:
- Gets the tenant’s timezone
- Computes in that timezone
- Compares against the field value
This means your logic (setting the date using the tenant’s timezone) and the test validation should agree — both resolve “today” relative to the tenant’s configured timezone, not the server’s The only edge case to watch for: if the test runs near midnight in the tenant’s timezone, the date could roll over between your logic setting the value and the test validating it. Also logic blocks have the ability to change what timzone it does it logic for, so if the tenant timezone is denver but lb is new york validations maybe wrong.
Also if the environment/tenants timezone is not configured we will default to the machines time zone. In other words the server the test is running on will look for the timezone defined if it is not set we will use the timezone where the machine is running.
