Merge 8be47fa406 into e267adf8b7
This commit is contained in:
commit
82952dc918
2 changed files with 123 additions and 16 deletions
|
|
@ -75,7 +75,9 @@ class Cfp < ApplicationRecord
|
|||
# * +false+ -> If the CFP is not set or today isn't in the CFP period.
|
||||
# * +true+ -> If today is in the CFP period.
|
||||
def open?
|
||||
(start_date..end_date).cover?(Date.current)
|
||||
current_date = Time.now.in_time_zone(program.conference.timezone).to_date
|
||||
|
||||
(start_date..end_date).cover?(current_date)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue