Skip to content
be-human.ai
← Back to the journal

Testing & reliability

Time Zones in Scheduled Agent Tasks: Avoid Missed and Duplicate Runs

Daylight saving shifts and multi-office teams cause missed or duplicate agent runs. Learn how to pin each schedule to a stated time zone and verify it.

Be Human typographic cover with the title: Time Zones in Scheduled Agent Tasks: Avoid Missed and Duplicate Runs
Conceptual illustration created with AI · Be Human

Time zone bugs in AI agents usually come from schedules that depend on a server's local clock, a daylight saving change, or a person in another office reading a time that means something different to them. The fix is to attach an explicit IANA time zone to every scheduled task, record each run with a stable identifier, and check the run history for both missing and extra executions. This article explains where the failures come from and how to verify a schedule before an agent is trusted with write access.

Key takeaways

  • A schedule written as "every weekday at 9:00" has no clear meaning until a time zone is attached to it.
  • Daylight saving changes can skip a local time and repeat another, so jobs either fall into a gap or fire twice.
  • Pin each schedule to a named zone such as America/Sao_Paulo or Europe/Lisbon, never to an abbreviation or to the server's default.
  • Give every run a deduplication key built from the task name and the business date, and alert on expected runs that never appear.
  • Test each schedule against the transition dates and office locations it will actually face before the agent gets authority.

Why does a scheduled agent run twice or not at all?

Most schedulers evaluate wall-clock times. A rule that says "every day at 2:30 in the local zone" is simple to read and hard to execute during a daylight saving change, because that local time does not exist on the spring-forward day. Depending on the scheduler, the run is skipped, delayed, or shifted to the next available minute. On the fall-back day, the local clock passes through some times twice, and a scheduler that compares only the local hour can fire the same task twice.

The second common cause is the server default. A container or cloud host often runs in UTC, while the business it serves works in a city several hours away. A task written as "9:00" then runs at 9:00 UTC, which may be the middle of the night for the people who expect the output. The third cause is the agent's own sense of "today." If the agent reads the date from the server clock but the report is expected for the business date, a run just after midnight can summarize the wrong day, and a retry can look like a second day's work.

How do multi-office teams create conflicting schedules?

A team in one office writes a request such as "send the supplier reminder at 8 in the morning." A colleague in another office reads the same words and assumes a different morning. Approval windows create the same problem when they are described as "before close of business" or "by end of day," because each office closes at a different hour and the agent has no shared definition of those phrases.

Illustrative scenario: a regional operations lead sets a supplier reminder for 08:00 in their own city. The scheduler runs in a host zone several hours away, so the reminder fires before the supplier's office opens. The agent also computes "today" from the host clock, which is still the previous calendar day in the lead's city, so the follow-up task is filed under the wrong date and never appears in the lead's morning queue. Nothing crashed, and the run history looks healthy, which is why the problem can persist for weeks.

How do you pin a schedule to one stated zone?

The goal is that every person and every system reads the same time for the same task. A practical sequence looks like this:

  • Name the business zone in the role definition, usually the zone of the person who approves the agent's output or receives its report.
  • Store each schedule as a local wall time plus an IANA zone identifier, not as a fixed offset, because a fixed offset ignores the daylight rules that apply in that region.
  • Convert to a UTC instant at the moment the scheduler computes the next run, and log both the UTC instant and the local time it corresponds to.
  • Define the business date for each run explicitly, so the agent, the report and the reviewer all mean the same day when they say "today."
  • Write the zone into every output that mentions a time, so a reader sees "09:00 Lisbon time" rather than a bare "09:00."

If an office in another zone needs to adjust a schedule, the change should go through the same record. A schedule that is edited in a dashboard by one person and never written down is the most common reason a fix made in one office breaks the run for another.

A schedule is only correct when its zone is written down next to its time.

How do you keep a clock change from creating duplicate work?

Repeated runs are less visible than missed ones, but they cost more when the task writes data. A duplicated invoice reminder or a second order placed by an agent creates work that someone has to undo. The defense is an identity for each run rather than a trust in the trigger. A useful key combines the task name, the business zone and the business date, for example a daily close summary for one office on one calendar day. Before the agent acts, it checks whether a run with that key already exists, and if it does, it returns the recorded result instead of acting again.

This is the same principle that payment platforms describe for repeated API requests. Stripe's documentation on idempotent requests explains how a client can send an identifier so that a repeated request returns the original outcome. Scheduled agents need the same discipline for their own triggers, because a daylight saving repeat, a retry after a timeout and a manual re-run can all arrive as the same instruction. For a deeper treatment of tool calls, see Idempotent Tool Calls for AI Agents: Retries Without Duplicate Work.

Retries need a rule of their own. A run that times out may or may not have completed its write, so it should be recorded as unknown and reconciled against the target system, not recorded as failed and run again. The AI Agent Retry Policy article covers how to set those limits.

Which checks catch missed and duplicate runs?

The run history is only useful if it is compared with what should have happened. For each scheduled task, keep a list of expected run instants derived from the stated zone, and compare it with the runs that were actually recorded. Three checks cover most cases. First, alert when an expected run has no record within a short window after its scheduled instant. Second, alert when two records share the same deduplication key. Third, compare the count of runs per business day with the count expected from the schedule, so a skipped or doubled day is visible in a single line.

These checks work best when they are reviewed on a regular rhythm. A weekly look at the schedule ledger, especially in the week around a clock change, catches drift early. Teams that already keep a routine for their agents can add the schedule ledger to it, as described in AI Agent Support and Maintenance: A Monthly Routine for Healthy Agents.

The OpenTelemetry observability primer describes the general idea behind this kind of check: record what happened as structured signals, then compare them with what was expected. For scheduled agents, the expectation is the calendar, and the signal is the run record.

How does Be Human's managed approach handle this?

In a Be Human engagement, the role definition records the business zone and the zone of every scheduled task, so the reason for each time is visible to the owner. Schedules run with explicit zone identifiers, business dates and deduplication keys, and each run is written to a ledger that the operations team can read. Monitoring compares the ledger with the expected calendar and alerts on missed or duplicate runs. Permission reviews confirm that the agent can write only on the schedules it owns, and every change to a schedule is recorded in the change log so that a team in another office can see what was altered and when.

What should you test before the agent gets authority?

Before a scheduled agent is allowed to write to a system, run it in a controlled setting first. A short pre-launch test covers the main failure modes:

  • Run the schedule against a test clock set to the days just before and after each clock change that your offices observe.
  • Confirm that the business date in each output matches the date expected in the business zone, including runs near midnight.
  • Trigger the same run twice and confirm that the second trigger returns the first result without writing again.
  • Simulate a timeout and confirm that the run is recorded as unknown and reconciled, not repeated.
  • Confirm that a missing run produces an alert addressed to a named person.

A trial period in which the agent prepares its actions but a person approves them is a practical way to see these behaviors with real data before any action is automatic. The approach is described in Run an AI agent in shadow mode before giving it authority. Take the free Be Human AI diagnostic to find the first task worth handing to an agent.

Frequently asked questions

Should agent schedules be stored in UTC or in local time? Store the schedule as a local wall time with an explicit IANA zone identifier, and convert to a UTC instant only when the scheduler computes the next run. This keeps the intent readable for the people who approve the work while still giving the system an unambiguous moment to execute. Logging both the UTC instant and the local time makes later review much faster.

What happens to a scheduled task when daylight saving time changes? On the day the clock moves forward, a local time may not exist, so the run can be skipped or delayed depending on the scheduler. On the day the clock moves back, some local times occur twice, so a naive scheduler can fire the same task twice. Testing those specific days before launch, and using deduplication keys based on the business date, prevents most surprises.

How can a team tell whether a scheduled run was missed? Keep a list of the run instants that the schedule should produce, calculated in the stated zone, and compare it with the run records the agent writes. An alert should fire when an expected run has no record within a short window. A weekly review of that comparison, especially around clock changes, makes gaps visible before they affect a customer or a supplier.

Does a time zone bug mean the agent itself is unreliable? Not necessarily. Most time zone failures come from the way the schedule was written and how the host interprets it, not from the model's reasoning. They are still serious, because they can produce quiet errors that look like normal operation, so the fix belongs in the schedule definition, the run identity and the monitoring rather than in hope that the problem will not recur.

Your next step

See where an AI agent fits in your company first.

Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.

Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.

Less busywork. More room for you.

Bring us the work you wish you had time for.

Book a call to try a personalized AI agent free for 7 days ↗Or take the free AI diagnostic →