Time and date settings when running unattended processes

Hi. I have some processes that determine yesterday’s (today -1). When I run these processes via studio or via Assistant after logging into the server it uses the correct regional date/time settings (I’m in Australia with UTC+10).

When I trigger these via an unattended process it is logging in via the same user account, however the time is UTC. Therefore, if the process is run prior to 10am it selects the wrong date as UTC is pre-midnight.

I found user settings to control the resolution for unattended processes and was wondering if there is a similar setting for the Time Zone?

Thanks

Craig.

Hi @craig.norton

When you create a time trigger, you have the option to select timezone.

There in you ca specify your timezone and then process will kick off based on that timezone.

Hope this helps.

@craig.norton

While creating a time trigger, you have timezone selection option.

HI. Thanks for you reply. Orchestrator triggers the job at the correct time. In my process I want to determine yesterday’s date via the following assign activity.

DateTime.Now.AddDays(-1).ToString(“dd/MM/yyyy”)

When I login to the server and run this via Assistant at 9am today (20/03/26) local time it correctly determines the date as 19/03/26. When I run unattended is is determining time based on UTC not local settings (UTC+10). Therefore 9am on 20/03/26 is 11pm 19/03/26, so when that assign is run the result is 18/03/26.

Even though its the same server, and same user account the Unattended is somehow using UTC instead of the user settings being UTC+10.

I wasn’t sure if there is a setting that I can specify for Unattended Processes. I did find settings within Tenant → Manage Access → Users where I can edit the user account and specify custom Resolution settings. Wasn’t sure if Time Zone has a similar setting.

Sorry misunderstood your reply and also the previous one. So that Timezone setting is what the Unattended server with use as its timezone.?

@craig.norton no it will trigger at the specific time with timezone.

The machine timezone could be different.

May I know what timezone yesterdays date you want?

I am simply trying to determine yesterday’s date. I am UTC+10, however day light saving may cause issues. Is there a way to check if the time in UTC is before 23:59:59? If so, then I will use today’s date, otherwise I’ll use today-1.

@craig.norton

Try this logic


If(
    TimeZoneInfo.ConvertTime(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time")).Date =
    DateTime.UtcNow.Date,
    DateTime.Today,
    DateTime.Today.AddDays(-1)
)