Use app timezone in domain#delete_candidateable?

#238
This commit is contained in:
Artur Beljajev 2016-11-14 13:40:10 +02:00
parent 877e6999dc
commit 41d3e62ad4

View file

@ -296,7 +296,7 @@ class Domain < ActiveRecord::Base
end
def delete_candidateable?
return false if delete_at.to_date > Date.today
return false if delete_at > Time.zone.now
return false if statuses.include?(DomainStatus::DELETE_CANDIDATE)
return false if statuses.include?(DomainStatus::SERVER_DELETE_PROHIBITED)
true