domain_changed revert

This commit is contained in:
Georg Kahest 2015-12-04 12:47:43 +02:00
parent 51394c795e
commit d8c879e377
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class WhoisRecord < ActiveRecord::Base
h[:name] = domain.name h[:name] = domain.name
h[:status] = domain.statuses.map { |x| status_map[x] || x } h[:status] = domain.statuses.map { |x| status_map[x] || x }
h[:registered] = domain.registered_at.try(:to_s, :iso8601) 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[:expire] = domain.valid_to.try(:to_date).try(:to_s)
h[:outzone] = domain.outzone_at.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) h[:delete] = domain.delete_at.try(:to_date).try(:to_s)

View file

@ -6,7 +6,7 @@ name: <%= json['name'] %>
status: <%= st %> status: <%= st %>
<%- end -%> <%- end -%>
registered: <%= json['registered'].to_s.tr('T',' ').sub('+', ' +') %> 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('+', ' +') %> expire: <%= json['expire'].to_s.tr('T',' ').sub('+', ' +') %>
outzone: <%= json['outzone'].to_s.tr('T',' ').sub('+', ' +') %> outzone: <%= json['outzone'].to_s.tr('T',' ').sub('+', ' +') %>
delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %> delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %>