This commit is contained in:
Felipe Nolleto Nascimento 2026-08-11 21:01:23 -03:00 committed by GitHub
commit 82952dc918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 123 additions and 16 deletions

View file

@ -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
##