diff --git a/src/Bundle/ChillMainBundle/Export/Migrator/SavedExportOptionsMigrator.php b/src/Bundle/ChillMainBundle/Export/Migrator/SavedExportOptionsMigrator.php index de72a30ac..c2360e13b 100644 --- a/src/Bundle/ChillMainBundle/Export/Migrator/SavedExportOptionsMigrator.php +++ b/src/Bundle/ChillMainBundle/Export/Migrator/SavedExportOptionsMigrator.php @@ -113,7 +113,7 @@ class SavedExportOptionsMigrator return null; } - $fixedDate = null !== ($formData['fixedDate'] ?? null) ? + $fixedDate = null !== ($formData['fixedDate'] ?? null) && "" !== $formData['fixedDate'] ? \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', sprintf('%s 00:00:00', $formData['fixedDate']), new \DateTimeZone(date_default_timezone_get())) : null; return (new RollingDate(