diff --git a/app/models/whois_record.rb b/app/models/whois_record.rb index b0c6eca03..21db2bdc0 100644 --- a/app/models/whois_record.rb +++ b/app/models/whois_record.rb @@ -41,7 +41,7 @@ class WhoisRecord < ActiveRecord::Base h[:name] = domain.name h[:status] = domain.statuses.map { |x| status_map[x] || x } h[:registered] = domain.registered_at.try(:to_s, :iso8601) - h[:domain_changed] = domain.updated_at.try(:to_s, :iso8601) + h[:changed] = domain.updated_at.try(:to_s, :iso8601) h[:expire] = domain.valid_to.try(:to_date).try(:to_s) h[:outzone] = domain.outzone_at.try(:to_date).try(:to_s) h[:delete] = domain.delete_at.try(:to_date).try(:to_s) diff --git a/app/views/for_models/whois.erb b/app/views/for_models/whois.erb index cfac6b01a..030f10d51 100644 --- a/app/views/for_models/whois.erb +++ b/app/views/for_models/whois.erb @@ -6,7 +6,7 @@ name: <%= json['name'] %> status: <%= st %> <%- end -%> registered: <%= json['registered'].to_s.tr('T',' ').sub('+', ' +') %> -changed: <%= json['domain_changed'].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['changed'].to_s.tr('T',' ').sub('+', ' +') %> expire: <%= json['expire'].to_s.tr('T',' ').sub('+', ' +') %> outzone: <%= json['outzone'].to_s.tr('T',' ').sub('+', ' +') %> delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %>