mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Consider timezone in cfp.open?
This commit is contained in:
parent
6e276b2787
commit
6bf34a84eb
1 changed files with 3 additions and 1 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