Skip to content

[Security][Workflows] settings.timezone is documented as a fallback for rrule.tzid but does not affect scheduling #8350

Open

Description

@nastasha-solomon

Description

Two pages state that settings.timezone acts as the default timezone for scheduled triggers when rrule.tzid is omitted. I could not find a code path that implements this.

explore-analyze/workflows/authoring-techniques/settings.md:

  • Scheduled triggers. If a scheduled trigger's rrule doesn't specify a tzid, settings.timezone is used.

If both settings.timezone and rrule.tzid are set, rrule.tzid wins for that trigger.

explore-analyze/workflows/triggers/scheduled-triggers.md:

You can also set a workflow-wide default with settings.timezone; rrule.tzid overrides it when both are set.

Verification

Verified against elastic/kibana at HEAD.

  • ScheduledTriggerSchema hardcodes the default: tzid: z.enum(timezoneNames).optional().default("UTC"). Parsing a trigger with no tzid returns tzid: "UTC", regardless of workflow settings.
  • WorkflowTaskScheduler.scheduleWorkflowTask calls convertWorkflowScheduleToTaskSchedule(trigger) and passes only the trigger. Workflow settings are never in scope at that call site.
  • convertRRuleToTaskSchedule reads only rruleConfig.tzid and throws if it is absent.
  • The only consumer of settings.timezone is resolveWorklfowSettings in kbn-workflows/graph/build_execution_graph/build_execution_graph.ts, which merges it into the execution context. That covers the Liquid date filter, not scheduling.

The practical effect: a workflow with settings.timezone: America/Los_Angeles and an rrule without tzid schedules in UTC, not Los Angeles.

Proposed solution

Confirm with engineering whether this is a docs error or an unimplemented behavior, then:

  • If a docs error: correct both pages. State that rrule.tzid defaults to UTC independently of settings.timezone, and narrow the settings.timezone description to date formatting.
  • If a product gap: open a Kibana issue and align the docs to current behavior in the meantime.

Note that the tzid row in the scheduled triggers field table was separately corrected from Required: Yes to Required: No in the PR for #7384, since the schema defaults it.

Found while working on #7384.

Activity

  1. added
    documentation
    on Sep 17, 2026
  2. added
    needs-team
    on Sep 17, 2026
  3. github-actions commented on Sep 17, 2026

    @github-actions
    Contributor

    Elastic Docs AI Menu

    Check one box to run an AI workflow for this issue.

    • Scope the docs work (docs-scope). Status: not started.

    Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

  4. removed
    needs-team
    on Sep 17, 2026
  5. added
    Team:SKI
    on Sep 17, 2026
  6. added
    triaged
    on Sep 17, 2026
  7. removed their assignment
    on Sep 25, 2026
  8. added
    Feature: Workflows
    on Nov 11, 2026
  9. changed the title [-][Workflows] settings.timezone is documented as a fallback for rrule.tzid but does not affect scheduling[/-] [+][Security][Workflows] settings.timezone is documented as a fallback for rrule.tzid but does not affect scheduling[/+] on Nov 17, 2026
  10. nastasha-solomon commented on Nov 18, 2026

    @nastasha-solomon
    MemberAuthor

    Dev review checklist

    Accuracy

    • Behavior: The description matches what the feature does in the product, including names, UI labels, defaults, and limits.
    • Scope: The deployment types and the Stack or serverless release are correct.
    • Differences: Any differences between deployment types or versions are called out.
    • Links: The linked PRs, issues, and design docs are the right ones.

    Completeness

    • Prerequisites: Required roles, privileges, subscription level, and settings are listed.
    • User impact: Changes that affect existing users are noted, such as breaking changes, deprecations, migrations, and known limitations.
    • Status: The feature's status (preview, beta, or GA) is stated.
    • Ownership: A point of contact is named and can answer docs questions, and it's clear who writes the first draft.

    Wrap up

    • I fixed or added anything wrong or missing, in the description or a comment.
    • I applied the dev-validated label.

    If you can't confirm an item, leave a comment saying what's unconfirmed and don't apply the label yet.

  11. bmorelli25 commented on Nov 24, 2026

    @bmorelli25
    Member

    Blocked pending validation and recommended prioritization from @elastic/workflows-eng.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Feature: WorkflowsTeam:SKIagentic-workflowsdocumentationtriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions