fix date format
This commit is contained in:
1 parent
c816a7f14b
commit
cf2cada74e
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user