diff --git a/core/lib/Drupal/Core/Datetime/DateFormats.php b/core/lib/Drupal/Core/Datetime/DateFormats.php index 18e6927..94e819b 100644 --- a/core/lib/Drupal/Core/Datetime/DateFormats.php +++ b/core/lib/Drupal/Core/Datetime/DateFormats.php @@ -10,6 +10,7 @@ use Drupal\Component\Utility\Xss; use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Datetime\DrupalDateTime; +use Drupal\Core\Language\Language; /** * Provides a service to render date formats. @@ -81,7 +82,7 @@ public function format($timestamp, $type = 'medium', $format = '', $timezone = N } if (empty($langcode)) { - $langcode = language(LANGUAGE_TYPE_INTERFACE)->langcode; + $langcode = language(Language::TYPE_INTERFACE)->langcode; } // Create a DrupalDateTime object from the timestamp and timezone.