mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-13 22:35:08 +02:00
Small fix
This commit is contained in:
parent
d7708f6fb6
commit
a315b2ca13
2 changed files with 3 additions and 3 deletions
|
@ -677,8 +677,8 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $m
|
|||
|
||||
// Validate that acceptedDate is before notAfter
|
||||
try {
|
||||
$acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $launch_acceptedDate);
|
||||
$notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $launch_notAfter);
|
||||
$acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $launch_acceptedDate);
|
||||
$notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $launch_notAfter);
|
||||
|
||||
if (!$acceptedDate || !$notAfterDate) {
|
||||
sendEppError($conn, $db, 2003, 'Invalid date format', $clTRID, $trans);
|
||||
|
|
|
@ -442,7 +442,7 @@ function processContactUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($validation_stamp !== null && \DateTime::createFromFormat('Y-m-d H:i:s.u', $validation_stamp) === false) {
|
||||
if ($validation_stamp !== null && \DateTime::createFromFormat('Y-m-d H:i:s.v', $validation_stamp) === false) {
|
||||
sendEppError($conn, $db, 2005, 'Validation date must be in format Y-m-d H:i:s.v (e.g. 2025-07-02 10:34:00.000)', $clTRID, $trans);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue