Skip to content

Retrieving contacts when executing WHOIS command on French domains results in an error #158

@ibalosh

Description

@ibalosh

Steps to reproduce

require "whois-parser"

response = Whois.whois("google.fr")
parser = response.parser
parser.contacts

Error message

...whois-parser-2.0.0/lib/whois/parsers/base_nic_fr.rb:139:in 
`utc': invalid value for Integer(): "2022-10-15T05:41:14.918179Z" (ArgumentError)

updated_on = values["changed"] ? Time.utc(*values["changed"].split(" ").first.split("/").reverse) : nil

Environment

Ruby: ruby-3.2.2 [ arm64 ]
Gem version: latest whois (5.1.0), whois-parser (2.0.0)

Note

When using ruby-3.0.0 [ arm64 ] , error will not be thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions