This commit is contained in:
Martin Lensment 2015-06-10 15:23:38 +03:00
parent 3353dd7484
commit 2af47921f2
2 changed files with 3 additions and 3 deletions

View file

@ -245,7 +245,7 @@ class Domain < ActiveRecord::Base
def renewable?
if Setting.days_to_renew_domain_before_expire != 0
if ((valid_to - Time.zone.now.beginning_of_day).to_i / 1.day) + 1 >= Setting.days_to_renew_domain_before_expire
if ((valid_to - Time.zone.now.beginning_of_day).to_i / 1.day) + 1 > Setting.days_to_renew_domain_before_expire
return false
end
end