Small fix

This commit is contained in:
Pinga 2025-07-02 13:09:53 +03:00
parent d7708f6fb6
commit a315b2ca13
2 changed files with 3 additions and 3 deletions

View file

@ -677,8 +677,8 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $m
// Validate that acceptedDate is before notAfter // Validate that acceptedDate is before notAfter
try { try {
$acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $launch_acceptedDate); $acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $launch_acceptedDate);
$notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $launch_notAfter); $notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $launch_notAfter);
if (!$acceptedDate || !$notAfterDate) { if (!$acceptedDate || !$notAfterDate) {
sendEppError($conn, $db, 2003, 'Invalid date format', $clTRID, $trans); sendEppError($conn, $db, 2003, 'Invalid date format', $clTRID, $trans);

View file

@ -442,7 +442,7 @@ function processContactUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
return; 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); 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; return;
} }