summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNathaniel Catchpole2019-01-02 14:28:13 (GMT)
committerNathaniel Catchpole2019-01-02 14:28:23 (GMT)
commit567ec6353d993290d37289f002466aca643fa79e (patch)
tree6fe3c434627ca4d64e28ab66ae1b4dd90decaf12 /core
parent040e6275a0a1ff741465152bcb5f185665b0089c (diff)
Issue #3023402 by alexpott: \Drupal\Tests\Component\Datetime\DateTimePlusTest fails on latest PHP7.3 build
(cherry picked from commit 6a888784fc2bed9ea6f315fec4f0f63f3376f64f)
Diffstat (limited to 'core')
-rw-r--r--core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
index 37b353b..6e7040a 100644
--- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
+++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
@@ -330,7 +330,9 @@ class DateTimePlusTest extends TestCase {
// 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 @@ class DateTimePlusTest extends TestCase {
// 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'];