lib/event_calendar.rb in event-calendar-2.3.1 vs lib/event_calendar.rb in event-calendar-2.3.2

- old
+ new

@@ -173,15 +173,16 @@ end [clipped_start, clipped_end] end def adjust_all_day_dates - if self[:all_day] - self[:start_at] = self[:start_at].beginning_of_day - if self[:end_at] - self[:end_at] = self[:end_at].beginning_of_day + 1.day - 1.second + if self.all_day + self.start_at = self.start_at.beginning_of_day + + if self.end_at + self.end_at = self.end_at.beginning_of_day + 1.day - 1.second else - self[:end_at] = self[:start_at].beginning_of_day + 1.day - 1.second + self.end_at = self.start_at + 1.day - 1.second end end end end