-
Notifications
You must be signed in to change notification settings - Fork 357
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
exception_times not used on next_occurence #83
Comments
I had the same issue. All this depends on the format of the start_time of you schedule I guess. So now, I go with schedule.next_occurences(12, Time.zone.now.round) and it works |
Yes, but this should be fixed in ice_cube. I have a workaround in place for that. |
Fix will go out with v0.9.0 - thanks! |
Are you sure that this is fixed? I removed the workaround I introduced to our codebase and tried 0.9.1, but it failed. Our current work around is not to use the miliseconds part of the timestamp and check against the exclude list manually. Basically what we did was:
and without_ms is a method on the Time class that creates a copy of the Time object with ms = 0 |
Ah - I see the issue you're running into - there will be a fix for this in 0.9.2 - I'll reopen now and add some more detail tonight |
Any update on this? |
Somehow the exception_times is not correctly used in next_occurence creation.
In our software we have:
And this is the result of next_occurence on that element:
The first Item should not be there.
The text was updated successfully, but these errors were encountered: