Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FBruzzesi opened this issue Dec 4, 2024 · 2 comments
Open

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

FBruzzesi opened this issue Dec 4, 2024 · 2 comments

Comments

@FBruzzesi
Copy link

FBruzzesi commented Dec 4, 2024

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

@Sonic0
Copy link
Owner

Sonic0 commented Dec 5, 2024

Hi @FBruzzesi, I’ll test your snippet as soon as possible to identify any issues. It wouldn’t be surprising if there’s a bug in the local-contrab or cron-converter code.

@Sonic0
Copy link
Owner

Sonic0 commented Jan 9, 2025

Hey @FBruzzesi, the weekday remains unchanged because I haven’t implemented the shift yet 😓. I’ll work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants