diff --git a/rdap/start_rdap.php b/rdap/start_rdap.php index 1ae0ecf..d4fac32 100644 --- a/rdap/start_rdap.php +++ b/rdap/start_rdap.php @@ -438,8 +438,8 @@ function handleDomainQuery($request, $response, $pdo, $domainName, $c, $log) { ]; // Check if domain last update is set and not empty - if (isset($domainDetails['update']) && !empty($domainDetails['update'])) { - $updateDateTime = new DateTime($domainDetails['update']); + if (isset($domainDetails['lastupdate']) && !empty($domainDetails['lastupdate'])) { + $updateDateTime = new DateTime($domainDetails['lastupdate']); $events[] = [ 'eventAction' => 'last domain update', 'eventDate' => $updateDateTime->format('Y-m-d\TH:i:s.v\Z') @@ -1668,8 +1668,8 @@ function handleDomainSearchQuery($request, $response, $pdo, $searchPattern, $c, ]; // Check if domain last update is set and not empty - if (isset($domainDetails['update']) && !empty($domainDetails['update'])) { - $updateDateTime = new DateTime($domainDetails['update']); + if (isset($domainDetails['lastupdate']) && !empty($domainDetails['lastupdate'])) { + $updateDateTime = new DateTime($domainDetails['lastupdate']); $events[] = [ 'eventAction' => 'last domain update', 'eventDate' => $updateDateTime->format('Y-m-d\TH:i:s.v\Z') diff --git a/whois/port43/start_whois.php b/whois/port43/start_whois.php index c6453b9..9481f6f 100644 --- a/whois/port43/start_whois.php +++ b/whois/port43/start_whois.php @@ -133,10 +133,10 @@ $server->on('receive', function ($server, $fd, $reactorId, $data) use ($c, $pool if ($f = $stmt->fetch(PDO::FETCH_ASSOC)) { $f['crdate'] = (new DateTime($f['crdate']))->format('Y-m-d\TH:i:s.v\Z'); - if (isset($f['update']) && $f['update'] !== null) { - $f['update'] = (new DateTime($f['update']))->format('Y-m-d\TH:i:s.v\Z'); + if (isset($f['lastupdate']) && $f['lastupdate'] !== null) { + $f['lastupdate'] = (new DateTime($f['lastupdate']))->format('Y-m-d\TH:i:s.v\Z'); } else { - $f['update'] = ''; + $f['lastupdate'] = ''; } $f['exdate'] = (new DateTime($f['exdate']))->format('Y-m-d\TH:i:s.v\Z'); @@ -158,7 +158,7 @@ $server->on('receive', function ($server, $fd, $reactorId, $data) use ($c, $pool ."\nRegistry Domain ID: D".$f['id']."-".$c['roid'] ."\nRegistrar WHOIS Server: ".$clidF['whois_server'] ."\nRegistrar URL: ".$clidF['url'] - ."\nUpdated Date: ".$f['update'] + ."\nUpdated Date: ".$f['lastupdate'] ."\nCreation Date: ".$f['crdate'] ."\nRegistry Expiry Date: ".$f['exdate'] ."\nRegistrar: ".$clidF['name']