ugh timezones
This commit is contained in:
parent
7181b05a83
commit
899d973020
1 changed files with 1 additions and 1 deletions
|
|
@ -700,7 +700,7 @@ class Conference < ApplicationRecord
|
||||||
|
|
||||||
# Returns the current day if it is a day of the schedule or nil otherwise
|
# Returns the current day if it is a day of the schedule or nil otherwise
|
||||||
def current_conference_day
|
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
|
day if (start_date..end_date).cover? day
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue