diff --git a/core/modules/aggregator/src/FeedViewBuilder.php b/core/modules/aggregator/src/FeedViewBuilder.php index e4e0c04..73e6a96 100644 --- a/core/modules/aggregator/src/FeedViewBuilder.php +++ b/core/modules/aggregator/src/FeedViewBuilder.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator; -use Drupal\Core\Datetime\Date as DateFormatter; +use Drupal\Core\Datetime\DateFormatter; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityTypeInterface; @@ -48,7 +48,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI $container->get('entity.manager'), $container->get('language_manager'), $container->get('config.factory')->get('aggregator.settings'), - $container->get('date') + $container->get('date.formatter') ); } diff --git a/core/modules/aggregator/src/ItemViewBuilder.php b/core/modules/aggregator/src/ItemViewBuilder.php index 7f48087..d0d2024 100644 --- a/core/modules/aggregator/src/ItemViewBuilder.php +++ b/core/modules/aggregator/src/ItemViewBuilder.php @@ -8,7 +8,7 @@ namespace Drupal\aggregator; use Drupal\Component\Utility\String; -use Drupal\Core\Datetime\Date as DateFormatter; +use Drupal\Core\Datetime\DateFormatter; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityTypeInterface; @@ -46,7 +46,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI $entity_type, $container->get('entity.manager'), $container->get('language_manager'), - $container->get('date') + $container->get('date.formatter') ); }