Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

SetDateFormat Not work #49

Open
boxbillinggit opened this issue Jun 1, 2015 · 2 comments
Open

SetDateFormat Not work #49

boxbillinggit opened this issue Jun 1, 2015 · 2 comments

Comments

@boxbillinggit
Copy link

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

@ghost
Copy link

ghost commented Jul 15, 2015

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
Copy link

XylonPH commented Jan 6, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants