Skip to content

Commit 9b086ec

Browse files
author
Nathaniel Catchpole
committed
Issue #3023402 by alexpott: \Drupal\Tests\Component\Datetime\DateTimePlusTest fails on latest PHP7.3 build
(cherry picked from commit 6a888784fc2bed9ea6f315fec4f0f63f3376f64f)
1 parent 367360f commit 9b086ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ public function providerTestDates() {
330330
// Create a date object in the distant past.
331331
// @see https://www.drupal.org/node/2795489#comment-12127088
332332
if (version_compare(PHP_VERSION, '5.6.15', '>=')) {
333-
$dates[] = ['1809-02-12 10:30', 'America/Chicago', '1809-02-12T10:30:00-06:00'];
333+
// Note that this date is after the United States standardized its
334+
// timezones.
335+
$dates[] = ['1883-11-19 10:30', 'America/Chicago', '1883-11-19T10:30:00-06:00'];
334336
}
335337
// Create a date object in the far future.
336338
$dates[] = ['2345-01-02 02:04', 'UTC', '2345-01-02T02:04:00+00:00'];
@@ -366,7 +368,9 @@ public function providerTestDateArrays() {
366368
// Create a date object in the distant past.
367369
// @see https://www.drupal.org/node/2795489#comment-12127088
368370
if (version_compare(PHP_VERSION, '5.6.15', '>=')) {
369-
$dates[] = [['year' => 1809, 'month' => 2, 'day' => 12], 'America/Chicago', '1809-02-12T00:00:00-06:00'];
371+
// Note that this date is after the United States standardized its
372+
// timezones.
373+
$dates[] = [['year' => 1883, 'month' => 11, 'day' => 19], 'America/Chicago', '1883-11-19T00:00:00-06:00'];
370374
}
371375
// Create a date object in the far future.
372376
$dates[] = [['year' => 2345, 'month' => 1, 'day' => 2], 'UTC', '2345-01-02T00:00:00+00:00'];

0 commit comments

Comments
 (0)