Don't provide default date when schedule is unset
This commit is contained in:
parent
6272816358
commit
3e6a882268
1 changed files with 0 additions and 2 deletions
|
@ -6,8 +6,6 @@ module FoodsoftDateUtil
|
|||
schedule.add_recurrence_rule rule_from(options[:recurr])
|
||||
# @todo handle ical parse errors
|
||||
occ = (schedule.next_occurrence(from).to_time rescue nil)
|
||||
else
|
||||
occ = start
|
||||
end
|
||||
if occ and options[:time]
|
||||
occ = occ.beginning_of_day.advance(seconds: Time.parse(options[:time]).seconds_since_midnight)
|
||||
|
|
Loading…
Reference in a new issue