mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-24 11:28:29 +02:00
More PgSql fixes
This commit is contained in:
parent
9db59109f7
commit
8aa16110d5
2 changed files with 8 additions and 8 deletions
|
@ -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')
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue