mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Clear CC issues
This commit is contained in:
parent
26e7fd870c
commit
b2c2342d7d
3 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue