lib/rufus/scheduler/cronline.rb in rufus-scheduler-3.0.6 vs lib/rufus/scheduler/cronline.rb in rufus-scheduler-3.0.7
- old
+ new
@@ -128,10 +128,13 @@
# start at the next second
time = time + 1
loop do
unless date_match?(time)
- time += (24 - time.hour) * 3600 - time.min * 60 - time.sec; next
+ dst = time.isdst
+ time += (24 - time.hour) * 3600 - time.min * 60 - time.sec
+ time -= 3600 if time.isdst != dst # not necessary for winter, but...
+ next
end
unless sub_match?(time, :hour, @hours)
time += (60 - time.min) * 60 - time.sec; next
end
unless sub_match?(time, :min, @minutes)