lib/groupdate/series_builder.rb in groupdate-4.1.0 vs lib/groupdate/series_builder.rb in groupdate-4.1.1
- old
+ new
@@ -174,10 +174,10 @@
end
last_step = series.last
loop do
next_step = last_step + step
- next_step = round_time(next_step) if next_step.hour != 0 # add condition to speed up
+ next_step = round_time(next_step) if next_step.hour != day_start # add condition to speed up
break unless time_range.cover?(next_step)
if next_step == last_step
last_step += step
next