Commit fd3efb7f authored by catch's avatar catch
Browse files

Issue #3207086 by benjifisher, larowlan, mondrake, Spokje: [HEAD BROKEN]...

Issue #3207086 by benjifisher, larowlan, mondrake, Spokje: [HEAD BROKEN] Consistent failure in MonthDatePluginTest
parent 8be87ecf
...@@ -50,10 +50,14 @@ class MonthDatePluginTest extends ViewTestBase { ...@@ -50,10 +50,14 @@ class MonthDatePluginTest extends ViewTestBase {
*/ */
public function setUp($import_test_views = TRUE): void { public function setUp($import_test_views = TRUE): void {
parent::setUp($import_test_views); parent::setUp($import_test_views);
$date1 = '2020-10-01 00:00:00'; $utc = new \DateTimeZone('UTC');
$this->node1 = $this->drupalCreateNode(['created' => strtotime($date1)]); $format = 'Y-m-d h:i:s';
$date2 = '2020-11-01 00:00:00'; $this->node1 = $this->drupalCreateNode([
$this->node2 = $this->drupalCreateNode(['created' => strtotime($date2)]); 'created' => \DateTime::createFromFormat($format, '2020-10-01 00:00:00', $utc)->getTimestamp(),
]);
$this->node2 = $this->drupalCreateNode([
'created' => \DateTime::createFromFormat($format, '2020-11-01 00:00:00', $utc)->getTimestamp(),
]);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment