fix date format
This commit is contained in:
parent
c816a7f14b
commit
cf2cada74e
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user