Index: tests/phpunit/tests/feed/rss2.php
===================================================================
--- tests/phpunit/tests/feed/rss2.php	(revision 39575)
+++ tests/phpunit/tests/feed/rss2.php	(working copy)
@@ -124,30 +124,57 @@ class Tests_Feeds_RSS2 extends WP_UnitTe
 		// Verify the channel is present and contains a title child element
 		$title = xml_find( $xml, 'rss', 'channel', 'title' );
 		$this->assertEquals( get_option( 'blogname' ), $title[0]['content'] );
 
 		$desc = xml_find( $xml, 'rss', 'channel', 'description' );
 		$this->assertEquals( get_option( 'blogdescription' ), $desc[0]['content'] );
 
 		$link = xml_find( $xml, 'rss', 'channel', 'link' );
 		$this->assertEquals( get_option( 'siteurl' ), $link[0]['content'] );
 
 		$pubdate = xml_find( $xml, 'rss', 'channel', 'lastBuildDate' );
 		$this->assertEquals( strtotime( get_lastpostmodified() ), strtotime( $pubdate[0]['content'] ) );
 	}
 
 	/**
+	 * Test that translated feeds have a valid listed date.
+	 * @group 39141
+	 */
+	function test_channel_pubdate_element_translated() {
+		$original_locale = $GLOBALS['wp_locale'];
+		/* @var WP_Locale $locale */
+		$locale = clone $GLOBALS['wp_locale'];
+
+		$locale->weekday[2] = 'Tuesday_Translated';
+		$locale->weekday_abbrev[ 'Tuesday_Translated' ] = 'Tue_Translated';
+
+		$GLOBALS['wp_locale'] = $locale;
+
+		$this->go_to( '/?feed=rss2' );
+		$feed = $this->do_rss2();
+
+		// Restore original locale.
+		$GLOBALS['wp_locale'] = $original_locale;
+
+		$xml = xml_to_array( $feed );
+
+		// Verify the date is untranslated.
+		$pubdate = xml_find( $xml, 'rss', 'channel', 'lastBuildDate' );
+		$this->assertNotContains( 'Tue_Translated', $pubdate[0]['content'] );
+	}
+
+	/**
 	 * @ticket UT32
 	 */
 	function test_item_elements() {
 		$this->go_to( '/?feed=rss2' );
 		$feed = $this->do_rss2();
 		$xml = xml_to_array( $feed );
 
 		// Get all the <item> child elements of the <channel> element
 		$items = xml_find( $xml, 'rss', 'channel', 'item' );
 
 		// Verify we are displaying the correct number of posts.
 		$this->assertCount( $this->post_count, $items );
 
 		// We Really only need to test X number of items unless the content is different
 		$items = array_slice( $items, 1 );
