diff --git a/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php b/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php index 1d3cc36..9cfdce9 100644 --- a/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php @@ -82,7 +82,7 @@ protected function setUp() { field_create_instance($this->instance); // Create a time in the past for the archive. - $time = time() - 3600; + $time = REQUEST_TIME - 3600; for ($i = 0; $i <= 10; $i++) { $user = $this->drupalCreateUser(); @@ -185,7 +185,7 @@ public function testArchiveView() { $this->executeView($view); $column_map = drupal_map_assoc(array('nid', 'created_year_month', 'num_records')); // Create time of additional nodes created in the setup method. - $created_year_month = date('Ym', time() - 3600); + $created_year_month = date('Ym', REQUEST_TIME - 3600); $expected_result = array( array( 'nid' => 1,