Skip to content

[BUG] Weekly schedule set to Sunday runs on Monday #10697

Backlog

Description

@kowshikdev

Describe the bug
A Schedule block set to Weekly / Sunday is deployed as a Monday schedule.

To Reproduce

  1. Add a Schedule block.
  2. Set run frequency to Weekly, day of week to Sunday, time to 09:00.
  3. Deploy and check the next run.

Expected behavior
The next run is the coming Sunday (0 9 * * 0). It is Monday (0 9 * * 1).

Additional context
getScheduleTimeValues in apps/sim/lib/workflows/schedules/utils.ts uses DAY_MAP[weeklyDayStr] || 1, and Sunday maps to 0.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions