diff --git a/core/modules/locale/lib/Drupal/locale/LocaleDate.php b/core/modules/locale/lib/Drupal/locale/LocaleDate.php index 6515ad6..1a41b8d 100644 --- a/core/modules/locale/lib/Drupal/locale/LocaleDate.php +++ b/core/modules/locale/lib/Drupal/locale/LocaleDate.php @@ -2,12 +2,13 @@ /** * @file - * Contains \Drupal\locale\LocalizedDate. + * Contains \Drupal\locale\LocaleDate. */ namespace Drupal\locale; -use \Drupal\Core\Datetime\Date; +use Drupal\Core\Datetime\Date; +use Drupal\Core\Language\Language; /** * Provides a service to handle various date related functionality considering diff --git a/core/modules/locale/lib/Drupal/locale/LocaleServiceProvider.php b/core/modules/locale/lib/Drupal/locale/LocaleServiceProvider.php index 87b2f84..05da044 100644 --- a/core/modules/locale/lib/Drupal/locale/LocaleServiceProvider.php +++ b/core/modules/locale/lib/Drupal/locale/LocaleServiceProvider.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\locale\LocalizedDateServiceProvider. + * Contains \Drupal\locale\LocaleServiceProvider. */ namespace Drupal\locale; @@ -29,7 +29,7 @@ public function register(ContainerBuilder $container) { public function alter(ContainerBuilder $container) { // Overrides date class to provide localized dates. $definition = $container->getDefinition('date'); - $definition->setClass('Drupal\locale\LocalizedDate'); + $definition->setClass('Drupal\locale\LocaleDate'); } }