We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f08ad commit 752d5ecCopy full SHA for 752d5ec
lib/ice_cube/validations/weekly_interval.rb
@@ -39,7 +39,7 @@ def validate(step_time, schedule)
39
d1 = Date.new(t1.year, t1.month, t1.day)
40
days = (d1 - TimeUtil.normalize_wday(d1.wday, week_start)) -
41
(d0 - TimeUtil.normalize_wday(d0.wday, week_start))
42
- offset = ((days / 7) % interval).nonzero?
+ offset = ((days.to_i / 7) % interval).nonzero?
43
(interval - offset) * 7 if offset
44
end
45
0 commit comments