From cf2cada74e2990d4ddf41ebb4084a91a03ea3e42 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Thu, 29 Aug 2024 11:49:46 +0300 Subject: [PATCH] fix date format --- src/formats/DateFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formats/DateFormat.php b/src/formats/DateFormat.php index d13bf86..0ec27e5 100644 --- a/src/formats/DateFormat.php +++ b/src/formats/DateFormat.php @@ -12,6 +12,6 @@ class DateFormat extends BaseFormat */ static function fetch(?string $data, string $options = ""): ?string { - return (new DateTimeImmutable($data))->format($options) ?? null; + return (new DateTimeImmutable($data ?? ""))->format($options) ?? null; } } \ No newline at end of file