From bdd5473d278e4b4f7b8cd338a9744f0b692ab5df Mon Sep 17 00:00:00 2001 From: Georg Kahest Date: Thu, 3 Dec 2015 18:45:07 +0200 Subject: [PATCH] domain updated at --- app/models/whois_record.rb | 2 +- app/views/for_models/whois.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/whois_record.rb b/app/models/whois_record.rb index 21db2bdc0..b0c6eca03 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[:changed] = domain.updated_at.try(:to_s, :iso8601) + h[:domain_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 030f10d51..cfac6b01a 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['changed'].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['domain_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('+', ' +') %>