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

Deprecate tzOffset option #336

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Deprecate tzOffset option #336

merged 1 commit into from
Feb 21, 2025

Conversation

bradymholt
Copy link
Owner

@bradymholt bradymholt commented Feb 21, 2025

This PR deprecates tzOffset and indicates the feature will be removed in a future release. If a value is specified for this option, a console warning will be printed - 'tzOffset' option has been deprecated and will be removed in a future release..

My original aim for this project was to keep it fairly simple and focus simply on describing a cron expression into language. Features such as timezone manipulation (as well as 'next' occurrence determination, full expression validation, etc.) take the project in a more complex direction and I would like to avoid this.

This issue: #313 brought to light that proper support for tzOffset requires significantly more careful handling when the offset causes a wrap in hour, day, etc. Thinking through the details, I realized this is not something I want this project to be handling anymore.

I know there will be folks that are disappointed with this change and I understand that. There is always the option to continue using an older version of cRonstrue that supports tzOffset, once it is fully removed in a future release.

Fixes #313

@bradymholt bradymholt merged commit 08ec53d into main Feb 21, 2025
2 checks passed
@bradymholt bradymholt deleted the deprecate-tzOffset branch February 21, 2025 21:23
Copy link

The changes in this PR were just released in v2.55.0 🎉.

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

Successfully merging this pull request may close these issues.

Daily cron expression with timezone offset displays incorrect day
1 participant