More consistent happening now formatting

This commit is contained in:
Michael Ball 2020-07-31 10:26:23 -07:00
parent 9d9fd38a2b
commit 61f5c9e0ee
2 changed files with 22 additions and 3 deletions

View file

@ -41,7 +41,7 @@ class EventSchedule < ApplicationRecord
in_tz_end -= in_tz_end.utc_offset
begin_range = Time.now - threshold
end_range = Time.now + threshold + 1.minute # The range is exclusive.
(begin_range..end_range).cover?(in_tz_start) || (begin_range..end_range).cover?(in_tz_end)
(begin_range..end_range).include?(in_tz_start..in_tz_end) # || (begin_range..end_range).cover?(in_tz_end)
end
def self.withdrawn_or_canceled_event_schedules(schedule_ids)