lib/zhong/at.rb in zhong-0.1.1 vs lib/zhong/at.rb in zhong-0.1.2
- old
+ new
@@ -25,10 +25,11 @@
end
def next_at(time = Time.now)
at_time = @wday.nil? ? time.dup : (time + (@wday - time.wday).days)
- at_time = at_time.change(hour: @hour, min: @minute)
+ at_time = at_time.change(min: @minute)
+ at_time = at_time.change(hour: @hour) if @hour
if at_time < @grace.ago
if @wday.nil?
at_time += 1.day
else