Added host:create EPP command

This commit is contained in:
Pinga 2023-08-19 21:48:31 +03:00
parent 1d31db8e6c
commit 2bcba151f4
4 changed files with 217 additions and 1 deletions

View file

@ -842,7 +842,7 @@ class EppWriter {
$writer->writeAttribute('xmlns:host', 'urn:ietf:params:xml:ns:host-1.0');
$writer->writeAttribute('xsi:schemaLocation', 'urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd');
$writer->writeElement('host:name', $resp['name']);
$writer->writeElement('host:crDate', $resp['crDate']);
$writer->writeElement('host:crDate', gmdate('Y-m-d\TH:i:s\.0\Z', strtotime($resp['crDate'])));
$writer->endElement(); // End of 'host:creData'
$writer->endElement(); // End of 'resData'
}