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

Check cron's nextrun date calculation #585

Closed
4unkur opened this issue Oct 31, 2017 · 1 comment
Closed

Check cron's nextrun date calculation #585

4unkur opened this issue Oct 31, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@4unkur
Copy link
Member

4unkur commented Oct 31, 2017

in some cases this date is calculated wrong. It sets the nextrun time to 1 year ahead from the time that should've been set.

@4unkur 4unkur self-assigned this Dec 12, 2017
4unkur pushed a commit that referenced this issue May 15, 2018
@4unkur
Copy link
Member Author

4unkur commented May 15, 2018

I was able to reproduce the issue:
To get the incorrect calculation set the timestamp of 31 Jan 2018 23:55 (timezone should match)
in ia.core.cron.php in assignment: $dateArr = getdate(); (pass ts as param)
you'll get 1 Jan 2019.

Meanwhile I imported 3rd party parser: https://github.com/poliander/cron
it works properly and maybe we'll stick with this solution.

@vbezruchkin vbezruchkin added this to the 4.2.1 milestone May 16, 2018
vbezruchkin pushed a commit that referenced this issue Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants