-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
There is a bad calculation if I set more complex crontab. Here is an example.
2.2.4 :001 > require 'cron_parser'
=> true
2.2.4 :002 > require 'time'
=> true
2.2.4 :003 > cron_parser = CronParser.new('1 2 8-15 * 4')
=> #<CronParser:0x000000009644e8 @source="1 2 8-15 * 4", @time_source=Time>
2.2.4 :004 > cron_parser.next(Time.parse('2016-03-01 00:00'))
=> 2016-03-03 02:01:00 +0100
It should be '2016-03-10 02:01:00' I think.
Metadata
Metadata
Assignees
Labels
No labels