diff --git a/core/modules/system/src/Tests/Common/FormatDateTest.php b/core/modules/system/src/Tests/Common/FormatDateTest.php
index a8ac433..cb54739 100644
--- a/core/modules/system/src/Tests/Common/FormatDateTest.php
+++ b/core/modules/system/src/Tests/Common/FormatDateTest.php
@@ -124,11 +124,9 @@ function testFormatDate() {
 
     // Disable session saving as we are about to modify the global $user.
     \Drupal::service('session_manager')->disable();
-    // Save the original user and language and then replace it with the test user and language.
+    // Save the original user and then replace global user with the test user.
     $real_user = $user;
     $user = user_load($test_user->id(), TRUE);
-    $real_language = $language_interface->id;
-    $language_interface->id = $user->getPreferredLangcode();
     // Simulate a Drupal bootstrap with the logged-in user.
     date_default_timezone_set(drupal_get_user_timezone());
 
@@ -148,9 +146,8 @@ function testFormatDate() {
     $this->assertIdentical(format_date($timestamp, 'html_month'), '2007-03', 'Test html_month date format.');
     $this->assertIdentical(format_date($timestamp, 'html_year'), '2007', 'Test html_year date format.');
 
-    // Restore the original user and language, and enable session saving.
+    // Restore the original user and enable session saving.
     $user = $real_user;
-    $language_interface->id = $real_language;
     // Restore default time zone.
     date_default_timezone_set(drupal_get_user_timezone());
     \Drupal::service('session_manager')->enable();
