Skip to content

Commit 3b17c96

Browse files
nikshostkovital-pantsialeyeu
authored andcommitted
MAGETWO-95802: Admin date wrong formatting for French locale
- Changed the logic of date formatting
1 parent 84d0050 commit 3b17c96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/products_new.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
1616
->setWebsiteIds([1])
1717
->setStockData(['qty' => 100, 'is_in_stock' => 1, 'manage_stock' => 1])
18-
->setNewsFromDate(date('Y-m-d', strtotime('-2 day')))
19-
->setNewsToDate(date('Y-m-d', strtotime('+2 day')))
18+
->setNewsFromDate(date('Y-m-d H:i:s', strtotime('-2 day')))
19+
->setNewsToDate(date('Y-m-d H:i:s', strtotime('+2 day')))
2020
->setDescription('description')
2121
->setShortDescription('short desc')
2222
->save();

0 commit comments

Comments
 (0)