We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a653969 commit fdb9c1aCopy full SHA for fdb9c1a
1 file changed
src/Service/BaseImporter.php
@@ -74,9 +74,9 @@ protected function convertLink(?object $obj): ?string
74
/**
75
* @throws \Exception
76
*/
77
- protected function convertDate(string $date): \DateTime
+ protected function convertDate(string $date): ?\DateTimeInterface
78
{
79
- return new \DateTime($date);
+ return empty($date) ? null : new \DateTimeImmutable($date);
80
}
81
82
0 commit comments