diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php index 37b353b8f6..6e7040adf1 100644 --- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php +++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php @@ -330,7 +330,9 @@ public function providerTestDates() { // Create a date object in the distant past. // @see https://www.drupal.org/node/2795489#comment-12127088 if (version_compare(PHP_VERSION, '5.6.15', '>=')) { - $dates[] = ['1809-02-12 10:30', 'America/Chicago', '1809-02-12T10:30:00-06:00']; + // Note that this date is after the United States standardized its + // timezones. + $dates[] = ['1883-11-19 10:30', 'America/Chicago', '1883-11-19T10:30:00-06:00']; } // Create a date object in the far future. $dates[] = ['2345-01-02 02:04', 'UTC', '2345-01-02T02:04:00+00:00']; @@ -366,7 +368,9 @@ public function providerTestDateArrays() { // Create a date object in the distant past. // @see https://www.drupal.org/node/2795489#comment-12127088 if (version_compare(PHP_VERSION, '5.6.15', '>=')) { - $dates[] = [['year' => 1809, 'month' => 2, 'day' => 12], 'America/Chicago', '1809-02-12T00:00:00-06:00']; + // Note that this date is after the United States standardized its + // timezones. + $dates[] = [['year' => 1883, 'month' => 11, 'day' => 19], 'America/Chicago', '1883-11-19T00:00:00-06:00']; } // Create a date object in the far future. $dates[] = [['year' => 2345, 'month' => 1, 'day' => 2], 'UTC', '2345-01-02T00:00:00+00:00'];