Skip to content

name.com tld parsing problem #2

Description

@alesf

Name.com whois server is returning dates with timestamp included which messes up the parsed data.

whois.gtld.name.php

should have these two array elements set like this:

'domain.created' => 'Creation Date:',
'domain.expires' => 'Expiration Date:'

and I've fixed the parser by adding this code in the beginning whois.parser.php get_date function:

if(strtotime($date) > 0) {
    return date('Y-m-d', strtotime($date));
}

I don't know if this change affects other date formats, so thread carefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions