forked from puppetlabs/puppet
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-1952) Fix schedule type with jruby
Due to jruby/jruby#1795 this was failing to calculate overlaps correctly on jruby. We shouldn't be doing our own date math like this anyway so I rewrote the `match?` function. This incidentally fixes a bug with arrays of ranges if an early range spanned midnight but did not match and a later range did, the check on the first range would return out of the function with false and the second range would never be checked.
- Loading branch information
Showing
2 changed files
with
34 additions
and
85 deletions.
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