diff --git a/src/Controller/MigrationController.php b/src/Controller/MigrationController.php index 7adba90..2c0bae8 100755 --- a/src/Controller/MigrationController.php +++ b/src/Controller/MigrationController.php @@ -97,10 +97,10 @@ class MigrationController extends EmailsController { $moments = explode( ',', $d->moments ); foreach ( $moments as $moment ) { $newChoice = new Choice(); + $dateOfDay = date_create( strtotime( $d->title ) ); $newChoice ->setPoll( $poll ) - ->setDateTime( date_create( strtotime( $d->title ) ) ) - ->setName( $moment ); + ->setName( $dateOfDay->format('y-m-d'). ' >>> ' . $moment ); $pollChoicesOrderedBySlug[ $pollSlug ][] = $newChoice; $poll->addChoice( $newChoice );