Skip to content

Commit 6dd602d

Browse files
committed
excluding until, not util
1 parent b3042c6 commit 6dd602d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ice_cube/validations/monthly_by_set_pos.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def validate(step_time, schedule)
3636
end_of_month = step_time.end_of_month
3737

3838
new_schedule = IceCube::Schedule.new(step_time - 1.month) do |s|
39-
s.add_recurrence_rule(IceCube::Rule.from_hash(rule.to_hash.except(:by_set_pos, :count, :util)))
39+
s.add_recurrence_rule(IceCube::Rule.from_hash(rule.to_hash.except(:by_set_pos, :count, :until)))
4040
end
4141

4242
occurrences = new_schedule.occurrences_between(start_of_month, end_of_month)

lib/ice_cube/validations/yearly_by_set_pos.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def validate(step_time, schedule)
3838
end_of_year = step_time.end_of_year
3939

4040
new_schedule = IceCube::Schedule.new(step_time - 1.year) do |s|
41-
s.add_recurrence_rule(IceCube::Rule.from_hash(rule.to_hash.except(:by_set_pos, :count, :util)))
41+
s.add_recurrence_rule(IceCube::Rule.from_hash(rule.to_hash.except(:by_set_pos, :count, :until)))
4242
end
4343

4444
occurrences = new_schedule.occurrences_between(start_of_year, end_of_year)

0 commit comments

Comments
 (0)