-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix backwards iteration when inital time has milliseconds (#112)
Iterating back from a date that is later than a candidate by less than 1s but more than 0s should return said candidate. Ex. Let's say the schedule is `0 * * * * *`. - Iterating the schedule before `12:00:05.000` should yield `12:00:04.000` - However, iterating the schedule before `12:00:05.100` (note the milliseconds) should start at `12:00:05.000`. This commit fixes the second case which was yielding `12:00:04.000`.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters