Log events on a schedule with timezone

Utilities

What it does

When a specified schedule triggers, this automation checks if the current hour is between 3 and 6 AM. If the condition is met, Clock retrieves the current time in the workspace timezone so someone can use it in downstream steps.

Who it's for

Operations teams who need to run time-sensitive tasks during specific hours.

How teams use this

Run maintenance during off-peak hours

Schedule a nightly job to fetch the current time and verify it falls in the 3 to 6 AM window before proceeding with system maintenance. The team avoids disrupting daytime operations.

Send alerts only during business hours

Use the retrieved time to decide whether to send notifications to the team. Add a condition that checks the time value and suppresses alerts outside 3 to 6 AM so the team is not woken by routine messages.

Log events with accurate timestamps

Capture the workspace timezone time and include it in event records so audit trails show when actions occurred in the team's local time. Set the timestamp field to the retrieved time value for accurate record-keeping.

How it works

  1. Run on a specified schedule. At the scheduled time, Clock checks whether the current hour falls between 3 and 6 AM before proceeding with the rest of this automation.
  2. Retrieve the current time. Clock fetches the current time adjusted to the workspace timezone so it reflects the local hour for the team in downstream steps.