lib/groupdate/series_builder.rb in groupdate-6.2.0 vs lib/groupdate/series_builder.rb in groupdate-6.2.1
- old
+ new
@@ -116,10 +116,10 @@
exclude_end = time_range.exclude_end?
finish = time_range.end
finish = finish.in_time_zone(time_zone) if finish
- if time_range.end.is_a?(Date) && !exclude_end
+ if time_range.end.is_a?(Date) && !time_range.end.is_a?(DateTime) && !exclude_end
finish += 1.day
exclude_end = true
end
if options[:expand_range]