Skip to content

[Bug]: Day shift is not applied? #4

Description

@FBruzzesi

Maybe I am missing something (if so, please consider this issue more as a question), but it seems that day shift is not applied in the conversion.

Example:

from cron_converter import Cron
from local_crontab import Converter

tz = "Pacific/Auckland"
local_schedule = "30 5 * * FRI"

Cron(
    cron_string=Converter(local_schedule, tz)).to_utc_cron(),
    options={"output_weekday_names": True}
).to_string()

30 16 * * FRI

I would expect this to become 30 16 * * THU

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions