diff --git a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php index be36791..01403d5 100644 --- a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php +++ b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php @@ -32,7 +32,9 @@ public function setUp() { '2000-10-10', '2001-10-10', '2002-10-10', - \Drupal::service('date.formatter')->format(REQUEST_TIME + 86400, 'custom', 'Y-m-d'), + // For the offset test, put a date 24 hours in the future. The `time()` + // function is used in case REQUEST_TIME is stale from long-running tests. + \Drupal::service('date.formatter')->format(time() + 86400, 'custom', 'Y-m-d'), ); foreach ($dates as $date) { $this->nodes[] = $this->drupalCreateNode(array(