From 899d973020c9554fa2138b207fd9a0e6248691b2 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 29 Jul 2020 22:21:26 -0700 Subject: [PATCH] ugh timezones --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index f0880d3b..c91939ae 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -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.now.in_time_zone(timezone).today + day = Time.find_zone(timezone).today day if (start_date..end_date).cover? day end