Clear CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-04-29 15:51:10 +03:00
parent 26e7fd870c
commit b2c2342d7d
3 changed files with 6 additions and 8 deletions

View file

@ -294,7 +294,7 @@ class Domain < ApplicationRecord
def renewable?
if Setting.days_to_renew_domain_before_expire != 0
# if you can renew domain at days_to_renew before domain expiration
if (expire_time.to_date - Date.today) + 1 > Setting.days_to_renew_domain_before_expire
if (expire_time.to_date - Time.zone.today) + 1 > Setting.days_to_renew_domain_before_expire
return false
end
end