lib/groupdate/series_builder.rb in groupdate-4.1.2 vs lib/groupdate/series_builder.rb in groupdate-4.2.0

- old
+ new

@@ -77,10 +77,12 @@ (time.wday - 1 - week_start) % 7 when :day_of_month time.day when :month_of_year time.month + when :day_of_year + time.yday else raise Groupdate::Error, "Invalid period" end # only if day_start != 0 for performance @@ -139,9 +141,11 @@ 0..23 when :minute_of_hour 0..59 when :day_of_month 1..31 + when :day_of_year + 1..366 when :month_of_year 1..12 else time_range = self.time_range time_range =