We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpWhois/src/whois.parser.php
Line 905 in 3918cb2
Using whois: artphone.co.il Problem parse date for line: "domain-registrar AT isoc.org.il 20201019 (Assigned)"
The text was updated successfully, but these errors were encountered:
Add whois.parser.php (function parseStandardDate())
// EXAMPLE: domain-registrar AT isoc.org.il 20201019 (Assigned) $pattern = '/\s(\d{4})(\d{2})(\d{2})\s?|$/'; if (preg_match_all($pattern, $date, $matches, PREG_SET_ORDER, 0) !== false) { $dateTimeFormat = 'Y-m-d'; $date = "{$matches[0][1]}-{$matches[0][2]}-{$matches[0][3]}"; $utc = new DateTimeZone('UTC'); return Datetime::createFromFormat($dateTimeFormat, $date, $utc); }
Sorry, something went wrong.
Got this message for the value
Updated Date: 0001-01-01T00:00:00.00Z
That "if value < 70" needs at least a is_numeric to prevent this error; better would be a null value returned for this kind of dates.
No branches or pull requests
phpWhois/src/whois.parser.php
Line 905 in 3918cb2
Using whois: artphone.co.il
Problem parse date for line: "domain-registrar AT isoc.org.il 20201019 (Assigned)"
The text was updated successfully, but these errors were encountered: