whois fix updated time

This commit is contained in:
Georg Kahest 2015-12-03 17:41:28 +02:00
parent f149b5fe0b
commit 9fbeeb70a2
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class WhoisRecord < ActiveRecord::Base
h[:registrant] = domain.registrant.name h[:registrant] = domain.registrant.name
h[:registrant_email] = domain.registrant.email h[:registrant_email] = domain.registrant.email
@disclosed << [:email, domain.registrant.email] @disclosed << [:email, domain.registrant.email]
h[:changed] = domain.registrant.updated_at.try(:to_s, :iso8601) h[:registrant_changed] = domain.registrant.updated_at.try(:to_s, :iso8601)
h[:admin_contacts] = [] h[:admin_contacts] = []
domain.admin_contacts.each do |ac| domain.admin_contacts.each do |ac|

View file

@ -14,7 +14,7 @@ delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %>
Registrant: Registrant:
name: <%= json['registrant'] %> name: <%= json['registrant'] %>
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: <%= json['changed'].to_s.tr('T',' ').sub('+', ' +') %> changed: <%= json['registrant_changed'].to_s.tr('T',' ').sub('+', ' +') %>
<%- if json['admin_contacts'].present? -%> <%- if json['admin_contacts'].present? -%>
Administrative contact: Administrative contact: