fix date format

This commit is contained in:
Kavalar 2024-08-29 11:49:46 +03:00
parent c816a7f14b
commit cf2cada74e

View File

@ -12,6 +12,6 @@ class DateFormat extends BaseFormat
*/ */
static function fetch(?string $data, string $options = ""): ?string static function fetch(?string $data, string $options = ""): ?string
{ {
return (new DateTimeImmutable($data))->format($options) ?? null; return (new DateTimeImmutable($data ?? ""))->format($options) ?? null;
} }
} }