Skip to content

Commit

Permalink
Fix date format in javascript behats
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Jan 13, 2025
1 parent bc8704b commit 98e93e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ public function theCatalogPromotionShouldOperateBetweenYesterdayAndTomorrow(
$this->indexPage->open();
Assert::true($this->indexPage->isSingleResourceOnPage([
'name' => $catalogPromotion->getName(),
'startDate' => (new \DateTime('yesterday'))->format('Y-m-d'),
'endDate' => (new \DateTime('tomorrow'))->format('Y-m-d'),
'startDate' => (new \DateTime('yesterday'))->format('d-m-Y'),
'endDate' => (new \DateTime('tomorrow'))->format('d-m-Y'),
]));

$this->sharedStorage->set('catalog_promotion', $catalogPromotion);
Expand Down

0 comments on commit 98e93e5

Please sign in to comment.