fixed payment methods & license
This commit is contained in:
@@ -164,10 +164,10 @@ class License
|
||||
elsif old_renewable_date.to_date < @varified['renewable_date'].to_date
|
||||
update_license("renewable_date", @varified['renewable_date'])
|
||||
status = 1
|
||||
message = "*** License con be verified. ***"
|
||||
message = "*** License con be verified. ***"
|
||||
end
|
||||
return status, message
|
||||
|
||||
|
||||
else
|
||||
delete_license_file
|
||||
end
|
||||
@@ -204,7 +204,7 @@ class License
|
||||
|
||||
def days_to_expire
|
||||
if renewal_date_str = read_license("renewable_date")
|
||||
Date.today - DateTime.parse(renewal_date_str).to_date
|
||||
Date.today - DateTime.parse(renewal_date_str).to_date
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user