Tweak timezone check and minor style tweaks

This commit is contained in:
Michael Ball 2020-07-29 22:16:34 -07:00
parent 2b598fb2d6
commit 7181b05a83
3 changed files with 4 additions and 4 deletions

View file

@ -700,7 +700,7 @@ class Conference < ApplicationRecord
# Returns the current day if it is a day of the schedule or nil otherwise
def current_conference_day
day = Time.find_zone(timezone).today
day = Time.now.in_time_zone(timezone).today
day if (start_date..end_date).cover? day
end