1 Commits
1.0 ... 1.0.1

Author SHA1 Message Date
cf2cada74e fix date format 2024-08-29 11:49:46 +03:00

View File

@ -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;
}
}