koroban / WhoisParser

Lookup domain names, IP addresses and AS numbers by WHOIS
http://www.novutec.com
136 stars 124 forks source link

SetDateFormat Not work #49

Open boxbillinggit opened 9 years ago

boxbillinggit commented 9 years ago

php $Parser->setDateFormat('%d-%m-%Y %H:%M:%S'); NOT WORK!!

ghost commented 9 years ago

It seems to work fine on my end.

require 'vendor/autoload.php';

$Parser = new \Novutec\WhoisParser\Parser('json');
$Parser->setDateFormat('%d.%m.%Y %H:%M:%S');

$result = $Parser->lookup('hello.org');
XylonPH commented 7 years ago

For most domain queries it does work. However, some domain formats the date in the format such as 2000-03-09-T12:24:43Z which Novutec\WhoisParser\Result\formatDate() is unable to convert correctly.