Skip to content

[Security][Workflows][9.x & Serverless] Document how tzid interacts with dtstart for scheduled workflow triggers #7384

Closed

Description

@rosomri

Description

The scheduled workflow trigger docs should clarify how rrule.tzid is applied when dtstart includes an explicit timezone, especially when the timestamp uses Z.

A user expected this configuration to run at 4:00 PM America/Chicago:

triggers:
  - type: scheduled
    with:
      rrule:
        freq: DAILY
        interval: 1
        tzid: America/Chicago
        dtstart: 2026-05-11T16:00:00Z

Instead, it fires at 11:00 AM Central because 2026-05-11T16:00:00Z is parsed as 4:00 PM UTC. tzid: America/Chicago controls the recurrence timezone, but does not reinterpret a Z timestamp as local time.

Context

Slack discussion: https://elasticstack.slack.com/archives/C08V1LBRA8Z/p1784124464138809?thread_ts=1784065062.352939&cid=C08V1LBRA8Z

Current Behavior

The docs do not clearly explain the interaction between dtstart, explicit timestamp offsets, Z, and tzid. This can lead users to assume that tzid reinterprets dtstart as local time.

Proposed Solution

Update the scheduled workflow trigger RRULE documentation to:

  • Explain that dtstart is parsed according to the timezone or offset in the timestamp first.
  • Clarify that Z means UTC.
  • Explain that tzid controls recurrence calculation and keeps future runs aligned to that timezone, including DST behavior.
  • Add an example for scheduling a workflow at 4:00 PM America/Chicago, such as:
    • dtstart: 2026-05-11T21:00:00Z
    • or dtstart: 2026-05-11T16:00:00-05:00
    • with tzid: America/Chicago
  • Consider adding a short note or warning near the scheduled trigger RRULE docs.

Impact

This will make scheduled workflow examples less ambiguous and help users avoid timezone-related scheduling mistakes.

Activity

  1. self-assigned this
    on Jul 15, 2026
  2. added
    needs-team
    on Jul 15, 2026
  3. github-actions commented on Jul 15, 2026

    @github-actions
    Contributor

    Elastic Docs AI Menu

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

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

  4. changed the title [-]Document how tzid interacts with dtstart for scheduled workflow triggers[/-] [+][Workflows] Document how tzid interacts with dtstart for scheduled workflow triggers[/+] on Jul 15, 2026
  5. added
    Team:SKI
    and removed
    needs-team
    on Jul 16, 2026
  6. changed the title [-][Workflows] Document how tzid interacts with dtstart for scheduled workflow triggers[/-] [+][Security][Workflows][9.x & Serverless] Document how tzid interacts with dtstart for scheduled workflow triggers[/+] on Sep 17, 2026
  7. nastasha-solomon commented on Oct 8, 2026

    @nastasha-solomon
    Member

    Have to move this to a future sprint. Delays on technical reviews + an unexpected influx of critical Alerting V2 requests were added to the last week of the current sprint (Sprint 32), which reduced the bandwidth I had to work on this.

  8. added a commit that references this issue on Oct 29, 2026
    9654347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Team:SKIdocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions