Refund operations now show correctly in invoices

This commit is contained in:
Pinga 2025-07-14 14:34:38 +03:00
parent 04b4e84741
commit 53516e01cb
5 changed files with 104 additions and 54 deletions

View file

@ -276,8 +276,8 @@ class DomainsController extends Controller
// Validate that acceptedDate is before notAfter
try {
$acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $data['accepted']);
$notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $data['notafter']);
$acceptedDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $data['accepted']);
$notAfterDate = DateTime::createFromFormat('Y-m-d\TH:i:s.v\Z', $data['notafter']);
if (!$acceptedDate || !$notAfterDate) {
$this->container->get('flash')->addMessage('error', "Invalid date format");