From c7dc6487af7d20a8b43b7294ef19463d640d0c94 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Tue, 2 Jun 2020 13:08:17 +0500 Subject: [PATCH] Fix registration deadline format --- app/models/whois_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/whois_record.rb b/app/models/whois_record.rb index d6b61d81..2ce6427c 100644 --- a/app/models/whois_record.rb +++ b/app/models/whois_record.rb @@ -48,7 +48,7 @@ def deserialize_domain expire: json['expire'], outzone: json['outzone'], delete: json['delete'], - registration_deadline: json['registration_deadline']) + registration_deadline: json['registration_deadline'].try(:to_s, :iso8601)) end # rubocop:enable Metrics/AbcSize